Changes

Jump to navigation Jump to search
821 bytes added ,  08:27, 21 June 2018
Line 26: Line 26:     
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<br />
 +
 
 +
Basic SSL VirtualHost:
 +
<nowiki><VirtualHost *:80>
 +
        ServerName home.rra.lan
 +
        ServerAdmin webmaster@rra.lan
 +
        DocumentRoot /var/www/home.rra.lan
 +
       
 +
        Redirect permanent / https://home.rra.lan
 +
        ErrorLog ${APACHE_LOG_DIR}/error.log
 +
        CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
</VirtualHost>
 +
<VirtualHost *:443>
 +
        ServerName home.rra.lan
 +
        ServerAdmin webmaster@rra.lan
 +
        DocumentRoot /var/www/home.rra.lan
 +
        ErrorLog ${APACHE_LOG_DIR}/error.log
 +
        CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
       
 +
        SSLEngine on
 +
        SSLCertificateKeyFile /etc/ssl/private/home.rra.lan.key
 +
        SSLCertificateFile /etc/ssl/certs/home.rra.lan.crt
 +
        SSLCertificateChainFile /etc/ssl/certs/FreeIPA-CA.crt
 +
</VirtualHost>
 +
</nowiki>
 +
 
 
== Redirect HTTP to HTTPS ==
 
== Redirect HTTP to HTTPS ==
 
sudo nano /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf
 
sudo nano /etc/apache2/sites-available/redirect_HTTP_to_HTTPS.conf

Navigation menu