Tips and tricks for setting up your webserver.
There were 5 articles found in this category:
Apache (5)
- How to create a vhost in Apache2
This document applies to Ubuntu server with a base install of Apache2 Move into /etc/apache2/sites-available/ Edit a new file for the requested vhost domain (example.com.conf) Add the following lines to into the newly created file <VirtualHost example.com> ServerAdmin webmaster@example.com ...
- How to disable weak SSL protocol and cipher suites in Apache
It is a good practice to disable weak SSL protocol such as SSLv1 and SSLv2 as well as weak cipher suite. Assuming that you already login to the server via SSH and gained root privileges, create a file as below with your favorite text editor (vi, nano, pico, etc...) : For Apache2 in Ubuntu Serv ...
- How to redirect to a redirect from one page to another
Goto the document root of your website Edit the .htaccess file located there. Add the following code to the file Redirect 301 /oldpage.html http://www.example.com/newpage.html Save and exit the file Restart the web server
- How to redirect all traffic to non-www version of your website
Goto the document root of your website Edit the .htaccess file located there. Add the following code to the file Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^example\.com RewriteRule (.*) http://example.com/$1 [R=301,L] Save and exit the file Res ...
- How to redirect all traffic to www version of your website
Goto the document root of your website Edit the .htaccess file located there. Add the following code to the file Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301] Save and exit the file Restart your web se ...



