Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Apache2
(view source)
Revision as of 12:46, 21 March 2018
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 ==
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