apache force ssl

This commit is contained in:
Lafrite 2014-01-26 07:01:19 +01:00
parent 5e20348a0a
commit 7a22a5257a
1 changed files with 18 additions and 0 deletions

18
serveur/apache.mdwn Normal file
View 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>