www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: FW: proxy with a specific source IP?
Date Wed, 09 Jun 2004 14:39:11 GMT
Richard Skeggs wrote:

> I am using apache2 to try and map
> 
> http://eghapp/esav  to  http://eghsnap1:8081/esav
> http://eghapp/ddrint  to  http://eghsnap2:8081/ddrint

> <virtualhost 10.14.1.150>
>     DocumentRoot "/usr/local/apache2/htdocs"
>     ProxyPassReverse /esav http://eghsnap1:8081/esav
>     ProxyPass /esav http://eghsnap1:8081/esav
>     servername www.emeademo.mobius.com
>     serverpath /esav/
> </virtualhost>
> 
> <virtualhost 10.14.1.150>
>     DocumentRoot "/usr/local/apache2/htdocs"
>     ProxyPassReverse /ddrint http://eghsnap2:8081/ddrint
>     ProxyPass /ddrint http://eghsnap2:8081/ddrint
>     servername www.emeademo.mobius.com
>     serverpath /ddrint/
> </virtualhost>

You have just configured two identical virtual hosts, the first one is 
going to work, the second one is going to be ignored.

What you want to do is this:

<virtualhost 10.14.1.150>

     DocumentRoot "/usr/local/apache2/htdocs"
     servername www.emeademo.mobius.com

     ProxyPassReverse /esav http://eghsnap1:8081/esav
     ProxyPass /esav http://eghsnap1:8081/esav

     ProxyPassReverse /ddrint http://eghsnap2:8081/ddrint
     ProxyPass /ddrint http://eghsnap2:8081/ddrint

</virtualhost>

Regards,
Graham
--

Mime
View raw message