Created
July 16, 2012 11:10
-
-
Save graffic/3122169 to your computer and use it in GitHub Desktop.
Nginx maintenance snippet
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
server { | |
... | |
# This is a copy&paste snippet to put your server in maintenance mode | |
error_page 503 @maintenance; | |
location @maintenance { | |
rewrite ^(.*)$ /maint.html break; | |
} | |
return 503; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment