Created
February 16, 2016 16:50
-
-
Save danalloway/788398e49ec313a99046 to your computer and use it in GitHub Desktop.
Custom NGINX 503 Page
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
server { | |
server_name _; | |
# override how 503's should be handled | |
error_page 503 @503; | |
location @503 { | |
# attempt to server our custom 503 first | |
# then fall back to the built-in one | |
try_files /503.html =503; | |
} | |
#location /make/this/path/503 { | |
# return 503; | |
#} | |
# or, 503 everything | |
#return 503; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment