Skip to content

Instantly share code, notes, and snippets.

@fernandoaleman
Last active April 16, 2022 21:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoaleman/66a8dcef7b64ff3b297fe684e418f551 to your computer and use it in GitHub Desktop.
Save fernandoaleman/66a8dcef7b64ff3b297fe684e418f551 to your computer and use it in GitHub Desktop.
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
@nipni
Copy link

nipni commented Aug 8, 2021

Sorry, but it didn't work for me.
Anyway thanks for the post.

@RichardTMiles
Copy link

no cigar :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment