httpd-users mailing list archives

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

Hi,

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
up
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 http://test-apache.hu/sleep.php
--21:23:42--  http://test-apache.hu/sleep.php
           => `sleep.php'
Resolving test-apache.hu... 111.222.222.111
Connecting to test-apache.hu|111.222.222.111|: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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message