Skip to content

Instantly share code, notes, and snippets.

@saimonmoore
Created February 25, 2013 00:18
Show Gist options
  • Save saimonmoore/5026410 to your computer and use it in GitHub Desktop.
Save saimonmoore/5026410 to your computer and use it in GitHub Desktop.
location / {
if (-f $uri/index.html) {
add_header Cache-Control "max-age=0, no-store";
add_header Pragma "no-cache";
expires 0;
}
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://unicorn_teambox;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment