Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Solving Apache 503 “Service temporarily unavailable” proxy timed out

Error

[Tue Jun 03 22:05:51 2014] [error] (110)Connection timed out: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (127.0.0.1) failed
[Tue Jun 03 22:05:51 2014] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Tue Jun 03 22:05:52 2014] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[...]

The problem is that the Apache proxy module, recognising that the service was unavailable, stopped redirecting requests to it for one minute.

The problem was solved adding a retry=0 parameter to the ProxyPass directive.

Solution

Adjust the following lines in your vhost then restart Apache

ProxyPass / http://127.0.0.1:3000/ retry=0 timeout=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.