mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
7
roles/httpd_front/templates/common_maintenance.inc.j2
Normal file
7
roles/httpd_front/templates/common_maintenance.inc.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
RewriteEngine on
|
||||
{% for ip in httpd_maintenance_ip | default([]) %}
|
||||
RewriteCond %{REMOTE_ADDR} !^{{ ip | replace('.','\.') }}
|
||||
{% endfor %}
|
||||
RewriteRule ^(.*)$ https://downtime.{{ httpd_primary_domain | default(ansible_domain) }}/ [R=301,L,E=nocache:1]
|
||||
Header always set Cache-Control "no-store, no-cache, must-revalidate" env=nocache
|
||||
Header always set Expires "Thu, 01 Jan 1970 00:00:00 GMT" env=nocache
|
Reference in New Issue
Block a user