httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Vlasov <>
Subject [users@httpd] ProxyTimeout and mod_rewrite proxy request
Date Wed, 30 Jan 2008 04:34:57 GMT


I use Apache 2.2.8 (2.2.6) worker mpm as frontend proxy server for
working up static requests.
And Apache 2.2.3 mpm prefork (as backend) with mod_php serves to work
dynamic requests, in this case, for PHP scripts.

I separate static from dynamic in worker with simple rules mod_rewrite,
for example:
RewriteCond %{HTTP_HOST} ([^/:]*)(.*)
RewriteRule ^([^?]*)\.php(.*)$ http://%1:8080%{REQUEST_URI} [NC,L,P]

When backend doesn't answer on requests, frontend returns to the client
an error 502 Proxy Error.

I want to increase timeout for getting this error. I tried to use
Timeout 300, ProxyTimeout 300 in httpd.conf, but it didn't bring any
result, timeout is 180 seconds.
I check it this way:

$ cat sleep.php
<?php ini_set ('max_execution_time', '3600'); sleep (600); ?>

$ time wget -T 3600
           => `sleep.php'
Connecting to||:80... connected.
HTTP request sent, awaiting response... 502 Proxy Error
21:26:43 ERROR 502: Proxy Error.

real    3m1.556s
user    0m0.000s
sys     0m0.004s

Does anyone have ideas what the timeout is and how to increase it?

BRGDS. Alexey Vlasov.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message