I'm running a django app with mod_wsgi and proxying with nginx. One of my views takes 2+ minutes to complete. When I visit it, I get a 504 gateway timeout. Is there a setting I can change to increase the time it takes to timeout? I've tried proxy_connect_timeout, proxy_read_timeout, and proxy_send_timeout in nginx without any luck.
Thanks.
Best Answer
Have you checked this directive out?
Source: http://wiki.nginx.org/HttpUwsgiModule
It might not work since you have Apache as an intermediary between Nginx and your WSGI Application. You may be able to, like Sameer mentioned, increase the normal proxy timeout in Nginx and also find the equivelant configuration options in Apache for WSGI.