I am working on an apache2 reverse proxy vhost. When the server behind apache is down, the first request to apache shows the error page of course.
But at subsequent requests it seems apache delays for some time before asking the backend server again. During all this time (which is short but in development I don't want a delay at all) only the apache error page is shown to the browser, although the backend server is already up.
Where is this setting in apache, what is this behaviour, and how can I set the delay time to zero?
Edit: I am not trying to change the timeout for a single request. I want to change the blocking time. It is my experience that apache blocks further requests for a certain time before asking a backend server again that has failed once.
Edit2: This is what apache delivers:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch proxy_html/3.0.0 Server at localhost Port 80
After hitting Ctrl-R in firefox for 60 seconds the page finally appears.
A bit late answer, but sending it in for refernce
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
The key setting is timeout value. Default is 60 seconds, can be set to 0 for always retry.
On RP configuration what is the value of ProxyTimeout config option? If it is not set, it failbacks to Timeout value.
You won't be able to have a "null" TO (even if it is unnoticeable, Apache tries to connect to backend and it takes time), but setting this value to 1 second may be acceptable.