Problems with nginx reverse proxy...
bm_witness at yahoo.com
Fri May 8 20:09:28 UTC 2015
I have a python application hosted under gunicorn that is expected to have long lived requests.It works just fine if we hit the application directly; however, we want to have nginx in front of it and are having issues with 504 errors.
I found some settings on-line that seem to be what we want to change, specifically the proxy_*_timeouts and send_timeout, and applied them to an environment. However, no matter what I try it always fails at 60 seconds.Here's the settings I am presently trying:
# Force HTTP/1.1 over proxy and its Keep-Alive functionality
proxy_set_header Connection "";
# Disable request buffering so requests go immediately to server
# Connect, Send Normal Timeout (60 seconds) OK
# Proxy Back-end Timeout (10m default) probably needs to be long
# Read/Client Send Timeout (60 second default) must be very long
These are all applied on the location second. I've tried these setting under both the location section and the server section, but there doesn't seem to be any difference.
What am I missing?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx