Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Apache2
(view source)
Revision as of 07:32, 15 October 2019
24 bytes added
,
07:32, 15 October 2019
m
→Redirect HTTP to HTTPS
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==
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