RE: FW: proxy with a specific source IP?

Richard Skeggs <[email protected]> Wed, 9 Jun 2004 10:17:41 -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_01C44E2C.8696C2B2
Content-Type: text/plain

Billiant...thanks a lot that is it works beautifully

Thank you

Richard


-----Original Message-----
From: Geff [mailto:[email protected]] 
Sent: 09 June 2004 15:00
To: [email protected]
Subject: Re: FW: proxy with a specific source IP?


Since I don't understand what you're trying to accomplish perhaps I'm
completely off base here, but why don't you want:

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

instead of what you have?  I wasn't aware that you could define a virtual
host twice.

Geff

Quoting Richard Skeggs <[email protected]>:

>
> 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_01C44E2C.8696C2B2
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>RE: FW: proxy with a specific source IP?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Billiant...thanks a lot that is it works =
beautifully</FONT>
</P>

<P><FONT SIZE=3D2>Thank you</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: 09 June 2004 15:00</FONT>
<BR><FONT SIZE=3D2>To: [email protected]</FONT>
<BR><FONT SIZE=3D2>Subject: Re: FW: proxy with a specific source =
IP?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Since I don't understand what you're trying to =
accomplish perhaps I'm completely off base here, but why don't you =
want:</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; 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>&lt;/virtualhost&gt;</FONT>
</P>

<P><FONT SIZE=3D2>instead of what you have?&nbsp; I wasn't aware that =
you could define a virtual host twice.</FONT>
</P>

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

<P><FONT SIZE=3D2>Quoting Richard Skeggs =
&lt;[email protected]&gt;:</FONT>
</P>

<P><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; I am using apache2 to try and map</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; <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> <A =
HREF=3D"http://eghapp/ddrint" =
TARGET=3D"_blank">http://eghapp/ddrint</A>&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; to&nbsp; <A =
HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; In isolation both maps work as expected but =
when I try and set up both </FONT>
<BR><FONT SIZE=3D2>&gt; together the problem I am faced with is that =
only the first map works </FONT>
<BR><FONT SIZE=3D2>&gt; successfully. My problem is I need to set up a =
two more of these </FONT>
<BR><FONT SIZE=3D2>&gt; mapping. Below is an extract from my httpd.conf =
file.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Httpd.conf extract</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; NameVirtualHost 10.14.1.150</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;virtualhost 10.14.1.150&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot =
&quot;/usr/local/apache2/htdocs&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&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>&gt;&nbsp;&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>&gt;&nbsp;&nbsp;&nbsp;&nbsp; servername =
www.emeademo.mobius.com</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; serverpath =
/esav/</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;/virtualhost&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;virtualhost 10.14.1.150&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot =
&quot;/usr/local/apache2/htdocs&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&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>&gt;&nbsp;&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>&gt;&nbsp;&nbsp;&nbsp;&nbsp; servername =
www.emeademo.mobius.com</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; serverpath =
/ddrint/</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;/virtualhost&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Thanks</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Richard</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Geff [<A =
HREF=3D"mailto:[email protected]">mailto:[email protected]</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: 08 June 2004 19:24</FONT>
<BR><FONT SIZE=3D2>&gt; To: [email protected]</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: Re: proxy with a specific source =
IP?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Quoting Richard Birkett =
&lt;[email protected]&gt;:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; It should apply cleanly to recent =
checkouts of 2.0 (with a few lines </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; offset).</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Thanks much.&nbsp; More reason to go to 2.0 =
:).</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Geff</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C44E2C.8696C2B2--