2021-06-25 12:15:51 +02:00
|
|
|
<VirtualHost *:443>
|
2021-06-26 12:45:58 +02:00
|
|
|
# YOUR CONFIG
|
|
|
|
|
2021-06-25 12:15:51 +02:00
|
|
|
# Redirect all request to a 503 return code when in maintenance mode
|
|
|
|
ErrorDocument 503 /maintenance/index.html
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond /var/www/maintenance/ALL -f [OR]
|
|
|
|
RewriteCond /var/www/maintenance/%{SERVER_NAME} -f
|
|
|
|
RewriteCond %{REQUEST_URI} !=/maintenance/index.html
|
|
|
|
RewriteCond %{REQUEST_URI} !=/maintenance/index.png
|
|
|
|
RewriteRule ^ - [R=503,L]
|
|
|
|
|
|
|
|
# Redirect away from the maintenance page if not in maintenance mode
|
|
|
|
RewriteCond /var/www/maintenance/ALL !-f
|
|
|
|
RewriteCond /var/www/maintenance/%{SERVER_NAME} !-f
|
|
|
|
RewriteRule ^/maintenance/index.html$ / [R,L]
|
2021-06-26 12:45:58 +02:00
|
|
|
|
2021-06-25 12:15:51 +02:00
|
|
|
</VirtualHost>
|