HOWTO : Make your Apache to use SSL

   

Step 1 :

sudo a2enmod ssl

Copy the default-ssl to the name as your current XOOPS domain, e.g. samiux.com.

sudo cp /etc/apache2/sites-available/default-ssl /etc/apache2/sites-available/samiux.com-ssl

sudo nano /etc/apache2/sites-available/samiux.com-ssl

Do not change anything inside but except the following :

DocumentRoot /var/www/xoops
ServerName www.samiux.com # add this line under DocumentRoot
<Directory /var/www/xoops>

Step 2 :

sudo nano /etc/apache2/sites-available/samiux.com

Make sure you enabled rewrite module as at previous HOWTO. Add the following inside the mod_rewrite.c bracket.

RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R]

Step 3 :

Open your browser and go to your site and login as admin. Enable SSL and add the... ... read more >>> samiux.wordpress.com

None