blob: c90c2e985c812f32e334b310729c3f3143db4778 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# /etc/apache2/conf-available/rewrite-http-to-https.conf
<IfModule mod_ssl.c>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</IfModule>
</IfModule>
|