httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul <>
Subject [users@httpd] Re: Help with mod_proxy
Date Sun, 26 Nov 2006 00:46:19 GMT
Todd Nine schrieb:
> No you misunderstood my post.  I'm not an idiot, I understand the point of
> proxying,  if the target server is down I won't be able to connect.
Sorry I didn't meant to be rude...

> a more clear example.  I'm proxying 2 http servers, server A and server B.
> If server B is not running when the proxy starts, I can't connect to server
> A.  I receive this message in the browser
Eather my english is quite broken or this is quite different from your
first explanation.

Nitpicking aside, I tried to reproduce your error, but it's working fine

VirtualHost *:80>
	ServerName proxytest.test.home
	ServerAdmin admin@proxytest.test.home
	DocumentRoot "/var/www/localhost/htdocs"
	Header set Server "apache on gentoo."

	<IfDefine PROXY>	
		ProxyPass /
		ProxyPassReverse /

<VirtualHost *:80>
	ServerName projects.test.home
	ServerAdmin admin@projects.test.home
	DocumentRoot "/var/www/localhost/htdocs"
	Header set Server "apache on gentoo."

	<IfDefine PROXY>	
		ProxyPass / http://localhost:8000/
		ProxyPassReverse / http://localhost:8000/

Now http://projects.test.home shows my trac projects and
proxytest.test.home gives 502 proxy error:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: DNS lookup failure for:
Apache Server at proxytest.test.home Port 80

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