Skip to content

Instantly share code, notes, and snippets.

@clofresh
Created March 10, 2010 16:22
Show Gist options
  • Select an option

  • Save clofresh/328025 to your computer and use it in GitHub Desktop.

Select an option

Save clofresh/328025 to your computer and use it in GitHub Desktop.
server {
location / {
root /var/www/nginx-default;
try_files /maintenance.html @frontends;
}
location @frontends {
proxy_pass http://appservers;
}
}
upstream appservers {
server 127.0.0.1:8888;
server 127.0.0.1:8889;
server 127.0.0.1:8890;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment