Skip to content

Instantly share code, notes, and snippets.

@joshgoebel
Created June 10, 2013 09:30
Show Gist options
  • Save joshgoebel/5747541 to your computer and use it in GitHub Desktop.
Save joshgoebel/5747541 to your computer and use it in GitHub Desktop.
location @503 {
add_header Maintenance "yes";
error_page 405 = /system/maintenance.html;
# Serve static assets if found.
if (-f $request_filename) {
break;
}
rewrite ^(.*)$ /system/maintenance.html break;
}
location = /system/maintenance.html {
add_header Maintenance "yes";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment