apache revers proxy Time out

Alles, was den Apache betrifft, kann hier besprochen werden.

apache revers proxy Time out

Postby tonysar » 30. November 2023 17:11

Using Apache as reverse proxy for Dotnet on ubuntu .
when starting backend i get 503 error . this expected as backend server takes about 10 seconds to start .
init service script in linux will start backend in this time frame.
how can i make Apache wait until upstream server restart ?
tonysar
 
Posts: 3
Joined: 30. November 2023 15:53
XAMPP version: 2.4.55
Operating System: Ubuntu

Re: apache revers proxy Time out

Postby Nobbie » 01. December 2023 13:59

You may try the connectiontimeout and timeout parameters in your worker (i.e. in the ProxyPass statement). Not sure if it works, as it defaults to 60s (what should have avoided your problem anyway, but maybe i am wrong about that), but i think its worth to give it a try.

See https://httpd.apache.org/docs/2.4/mod/m ... ml#workers
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 52 guests