FW: proxy with a specific source IP?

Richard Skeggs <[email protected]> Wed, 9 Jun 2004 06:53:16 -0400
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C44E0F.F7E63352
Content-Type: text/plain


I am using apache2 to try and map

http://eghapp/esav  to  http://eghsnap1:8081/esav
http://eghapp/ddrint  to  http://eghsnap2:8081/ddrint

In isolation both maps work as expected but when I try and set up both
together the problem I am faced with is that only the first map works
successfully. My problem is I need to set up a two more of these mapping.
Below is an extract from my httpd.conf file.


Httpd.conf extract

NameVirtualHost 10.14.1.150

<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>

Thanks

Richard


-----Original Message-----
From: Geff [mailto:[email protected]] 
Sent: 08 June 2004 19:24
To: [email protected]
Subject: Re: proxy with a specific source IP?


Quoting Richard Birkett <[email protected]>:
> It should apply cleanly to recent checkouts of 2.0 (with a few lines 
> offset).

Thanks much.  More reason to go to 2.0 :).

Geff


------_=_NextPart_001_01C44E0F.F7E63352
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2658.2">
<TITLE>FW: proxy with a specific source IP?</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>I am using apache2 to try and map</FONT>
</P>

<P><FONT SIZE=3D2><A HREF=3D"http://eghapp/esav" =
TARGET=3D"_blank">http://eghapp/esav</A>&nbsp; to&nbsp; <A =
HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://eghapp/ddrint" =
TARGET=3D"_blank">http://eghapp/ddrint</A>&nbsp; to&nbsp; <A =
HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT>
</P>

<P><FONT SIZE=3D2>In isolation both maps work as expected but when I =
try and set up both together the problem I am faced with is that only =
the first map works successfully. My problem is I need to set up a two =
more of these mapping. Below is an extract from my httpd.conf =
file.</FONT></P>
<BR>

<P><FONT SIZE=3D2>Httpd.conf extract</FONT>
</P>

<P><FONT SIZE=3D2>NameVirtualHost 10.14.1.150</FONT>
</P>

<P><FONT SIZE=3D2>&lt;virtualhost 10.14.1.150&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; DocumentRoot =
&quot;/usr/local/apache2/htdocs&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; ProxyPassReverse /esav <A =
HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; ProxyPass /esav <A =
HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; servername =
www.emeademo.mobius.com</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; serverpath /esav/</FONT>
<BR><FONT SIZE=3D2>&lt;/virtualhost&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&lt;virtualhost 10.14.1.150&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; DocumentRoot =
&quot;/usr/local/apache2/htdocs&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; ProxyPassReverse /ddrint <A =
HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; ProxyPass /ddrint <A =
HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; servername =
www.emeademo.mobius.com</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; serverpath /ddrint/</FONT>
<BR><FONT SIZE=3D2>&lt;/virtualhost&gt;</FONT>
</P>

<P><FONT SIZE=3D2>Thanks</FONT>
</P>

<P><FONT SIZE=3D2>Richard</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Geff [<A =
HREF=3D"mailto:[email protected]">mailto:[email protected]</A>] </FONT>
<BR><FONT SIZE=3D2>Sent: 08 June 2004 19:24</FONT>
<BR><FONT SIZE=3D2>To: [email protected]</FONT>
<BR><FONT SIZE=3D2>Subject: Re: proxy with a specific source IP?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Quoting Richard Birkett =
&lt;[email protected]&gt;:</FONT>
<BR><FONT SIZE=3D2>&gt; It should apply cleanly to recent checkouts of =
2.0 (with a few lines </FONT>
<BR><FONT SIZE=3D2>&gt; offset).</FONT>
</P>

<P><FONT SIZE=3D2>Thanks much.&nbsp; More reason to go to 2.0 =
:).</FONT>
</P>

<P><FONT SIZE=3D2>Geff</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C44E0F.F7E63352--