19 lines
327 B
Plaintext
19 lines
327 B
Plaintext
|
# 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>
|