Skip to content

Instantly share code, notes, and snippets.

Created January 3, 2014 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8244951 to your computer and use it in GitHub Desktop.
Save anonymous/8244951 to your computer and use it in GitHub Desktop.
location / {
proxy_pass http://localhost:8900;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_redirect http://localhost:8900 http://$host/;
# proxy_connect_timeout 10;
# proxy_read_timeout 15;
# proxy_send_timeout 15;
# proxy_intercept_errors on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment