Changes

Jump to navigation Jump to search
24 bytes added ,  07:32, 15 October 2019
m
Line 55: Line 55:  
<code>sudo a2enmod rewrite</code>
 
<code>sudo a2enmod rewrite</code>
   −
sudo nano /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf
+
<code>sudo nano /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf</code>
    
<br />
 
<br />
Line 61: Line 61:  
           RewriteEngine on
 
           RewriteEngine on
 
           RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
 
           RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  </VirtualHost></nowiki>
+
</VirtualHost></nowiki>
sudo ln -s /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf /etc/apache2/sites-enable/redirect_HTTP_to_HTTPS
+
<code>sudo ln -s /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf /etc/apache2/sites-enable/redirect_HTTP_to_HTTPS</code>
 +
 
 
==Authentication==
 
==Authentication==
  

Navigation menu