Created
November 6, 2015 16:02
-
-
Save toch/f4cb2d7718c600698e04 to your computer and use it in GitHub Desktop.
simple maintenance page for rails + apache2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
ErrorDocument 503 /maintenance.html | |
RewriteCond %{REQUEST_URI} !.(css|gif|jpg|png)$ | |
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
RewriteRule ^.*$ - [L,R=503] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment