Created
January 21, 2014 13:52
-
-
Save tkhn/8540443 to your computer and use it in GitHub Desktop.
nginx passenger maintenance mode
This file contains hidden or 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
| if (-f $document_root/system/maintenance.html) { | |
| return 503; | |
| } | |
| error_page 404 /404.html; | |
| error_page 500 502 504 /500.html; | |
| error_page 503 @503; | |
| location @503 { | |
| rewrite ^(.*)$ /system/maintenance.html break; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment