Changes

Jump to navigation Jump to search
370 bytes added ,  12:46, 21 March 2018
no edit summary
Line 27: Line 27:  
You should also enter in your domain administration panel and create the CNAMES to redirect trafic<br />
 
You should also enter in your domain administration panel and create the CNAMES to redirect trafic<br />
 
to the public ip of this server
 
to the public ip of this server
 
+
== Redirect HTTP to HTTPS ==
 +
sudo nano /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf
 +
<nowiki><VirtualHost *:80>
 +
        RewriteEngine on
 +
        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
 +
</VirtualHost></nowiki>
 +
sudo ln -s /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf /etc/apache2/sites-enable/redirect_HTTP_to_HTTPS
 
== Authentication ==
 
== Authentication ==
  

Navigation menu