Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
dwradcliffe committed Nov 1, 2014
1 parent f256a4c commit cbaf236
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cookbooks/rubygems-balancer/templates/default/site.conf.erb
Original file line number Diff line number Diff line change
@@ -144,11 +144,17 @@ server {
try_files $uri @app;
}

root /var/www/rubygems;

location / {
root /var/www/rubygems;
try_files /maintenance.html @app;
if (-f $document_root/maintenance.html) {
return 503;
}
proxy_pass http://app_servers;
}

error_page 503 /maintenance.html;

location @app {
proxy_pass http://app_servers;
}

0 comments on commit cbaf236

Please sign in to comment.