diff --git a/apache/maintenance.conf b/apache/maintenance.conf new file mode 100644 index 0000000..6576a7f --- /dev/null +++ b/apache/maintenance.conf @@ -0,0 +1,15 @@ + + # 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] + diff --git a/apache/maintenance.html b/apache/maintenance.html new file mode 100644 index 0000000..d0058ee --- /dev/null +++ b/apache/maintenance.html @@ -0,0 +1,20 @@ + +Site Maintenance + + +
+ +

We’ll be back soon!

+
+

We’re performing some hacks at the moment. +
You can always contact us!

+

— Your best friend 😎

+
+
diff --git a/apache/maintenance.png b/apache/maintenance.png new file mode 100644 index 0000000..c99efd2 Binary files /dev/null and b/apache/maintenance.png differ