apache force ssl
This commit is contained in:
parent
5e20348a0a
commit
7a22a5257a
18
serveur/apache.mdwn
Normal file
18
serveur/apache.mdwn
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Apache2
|
||||||
|
|
||||||
|
## Force https
|
||||||
|
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName %{ServeurName %}
|
||||||
|
|
||||||
|
RewriteEngine on
|
||||||
|
ReWriteCond %{SERVER_PORT} !^443$
|
||||||
|
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerName %{ServeurName %}
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
</VirtualHost>
|
Loading…
Reference in New Issue
Block a user