Created
June 2, 2015 20:49
-
-
Save jbrinley/92929cf576c15ce6079c to your computer and use it in GitHub Desktop.
Partial nginx.conf to show proxy IP forwarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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