Skip to content

Instantly share code, notes, and snippets.

View fernandez14's full-sized avatar

Carlos Eduardo Fernández fernandez14

View GitHub Profile
@bcambel
bcambel / nginx.conf
Created August 16, 2013 06:57
Nginx maintenance redirect when a specific file exists
server {
listen 80;
server_name mysite.com;
root /var/www/mysite.com/;
location / {
if (-f $document_root/maintenance.html) {
return 503;
}
... # the rest of your config goes here