httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yu, Ming" <Ming...@jhuapl.edu>
Subject [users@httpd] ProxyPreserveHost and ProxyPass
Date Tue, 08 Jun 2004 17:46:28 GMT
I am using Apache 2.0.49 as a reverse proxy server.  Recently I enabled
ProxyPreserveHost directory and ran into this interesting problem.
ProxyPass and ProxyPassReverse no longer works the same way.  It works fine
with those URLs of the proxied site as http://proxied.abc.com/somedir/
<http://proxied.abc.com/somedir/> .  But it does not work with the URLs of
the proxied site as http://proxied.abc.com/ <http://proxied.abc.com/> 

E.g.

The following is my virtual host configuration:

<VirtualHost 10.10.12.12:80>
ServerName Proxytest.abc.com
RewriteEngine On
ProxyPreserveHost On
ProxyRequests On
.
.
ProxyPass        /test1/      http://proxied.abc.com/essence/
<http://proxied.abc.com/essence/> 
ProxyPassReverse /test1/      http://proxied.abc.com/essence/
<http://proxied.abc.com/essence/> 

ProxyPass 	/test2/	http://test.abc.com/ <http://test.abc.com/> 
ProxyPassReverse /test2/ http://test.abc.com/ <http://test.abc.com/> 
.
.
.
</VirtualHost>

Before the ProxyPreserveHost is set to On, everything works fine.  But when
ProxyPreserveHost has been turned on, only test1 works fine, test2 stop
working.

Thank you in advance for any suggestions.

___________________________
Ming Yu
Applied Physics Laboratory
Johns Hopkins University
Laurel, MD 20723


Mime
View raw message