Apache proxying to Unicorn server times out, how to avoid?
- by Ian
I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends a timeout, because if I'm not wrong, Unicorn will quit the timed-out worker process but spawn a new one to handle the same request.
Is there a way to configure Apache to not timeout like the nginx configuration of timeout = 0?
Thanks for the help!
EDIT
I found a way, though it doesn't really work as I expected. In the ProxyPass directive you have to specify a retry=0 option after the url:
ProxyPass / http://url/ retry=0
It doesn't work if the url is a ProxyBalancer though.