Skip to content

Instantly share code, notes, and snippets.

@jbrinley
Created June 2, 2015 20:49
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 jbrinley/92929cf576c15ce6079c to your computer and use it in GitHub Desktop.
Save jbrinley/92929cf576c15ce6079c to your computer and use it in GitHub Desktop.
Partial nginx.conf to show proxy IP forwarding
location / {
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $proxy_remote_addr;
proxy_set_header X-Forwarded-For $proxy_remote_addr;
proxy_connect_timeout 6000;
proxy_send_timeout 6000;
proxy_read_timeout 6000;
send_timeout 6000;
proxy_pass http://apache_upstream;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment