Skip to content

Instantly share code, notes, and snippets.

@kirs
Created September 4, 2011 20:08
Show Gist options
  • Save kirs/1193428 to your computer and use it in GitHub Desktop.
Save kirs/1193428 to your computer and use it in GitHub Desktop.
nginx config for capistrano maintenance
# this rewrites all the requests to the maintenance.html
# page if it exists in the doc root. This is for capistrano's
# disable web task
if (-f $document_root/system/maintenance.html) {
rewrite ^(.*)$ /system/maintenance.html last;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment