Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Apache2
(view source)
Revision as of 08:27, 21 June 2018
821 bytes added
,
08:27, 21 June 2018
→Virtual Hosts
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version