ansible-roles/roles/httpd_front/templates/common_force_ssl.inc.j2
2021-12-01 19:13:34 +01:00

6 lines
279 B
Django/Jinja

RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L,NE,E=NOCACHE:1]
Header always set Cache-Control "no-store, no-cache, must-revalidate" env=NOCACHE