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
# The following recipe works with upstream rails proxy for custom 404s and 500s. | |
# Errors are usually handled via rails except if proxy is really down, in which case | |
# nginx needs a bit more configration. | |
server { | |
# ... | |
location / { | |
error_page 404 = @rails; # let rails show a page with suggestions | |
try_files maintenance.html @rails; |