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><virtualhost 10.14.1.150></FONT> <BR><FONT SIZE=3D2> DocumentRoot = "/usr/local/apache2/htdocs"</FONT> <BR><FONT SIZE=3D2> ProxyPassReverse /esav <A = HREF=3D"http://eghsnap1:8081/esav" = TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT> <BR><FONT SIZE=3D2> ProxyPass /esav <A = HREF=3D"http://eghsnap1:8081/esav" = TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT> <BR><FONT SIZE=3D2> ProxyPassReverse /ddrint <A = HREF=3D"http://eghsnap2:8081/ddrint" = TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT> <BR><FONT SIZE=3D2> ProxyPass /ddrint <A = HREF=3D"http://eghsnap2:8081/ddrint" = TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT> <BR><FONT SIZE=3D2> servername = www.emeademo.mobius.com</FONT> <BR><FONT SIZE=3D2></virtualhost></FONT> </P> <P><FONT SIZE=3D2>instead of what you have? 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 = <[email protected]>:</FONT> </P> <P><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> I am using apache2 to try and map</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> <A HREF=3D"http://eghapp/esav" = TARGET=3D"_blank">http://eghapp/esav</A> to <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> </FONT> <BR><FONT SIZE=3D2>> to <A = HREF=3D"http://eghsnap2:8081/ddrint" = TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> In isolation both maps work as expected but = when I try and set up both </FONT> <BR><FONT SIZE=3D2>> together the problem I am faced with is that = only the first map works </FONT> <BR><FONT SIZE=3D2>> successfully. My problem is I need to set up a = two more of these </FONT> <BR><FONT SIZE=3D2>> mapping. Below is an extract from my httpd.conf = file.</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Httpd.conf extract</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> NameVirtualHost 10.14.1.150</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> <virtualhost 10.14.1.150></FONT> <BR><FONT SIZE=3D2>> DocumentRoot = "/usr/local/apache2/htdocs"</FONT> <BR><FONT SIZE=3D2>> ProxyPassReverse /esav = <A HREF=3D"http://eghsnap1:8081/esav" = TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT> <BR><FONT SIZE=3D2>> ProxyPass /esav <A = HREF=3D"http://eghsnap1:8081/esav" = TARGET=3D"_blank">http://eghsnap1:8081/esav</A></FONT> <BR><FONT SIZE=3D2>> servername = www.emeademo.mobius.com</FONT> <BR><FONT SIZE=3D2>> serverpath = /esav/</FONT> <BR><FONT SIZE=3D2>> </virtualhost></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> <virtualhost 10.14.1.150></FONT> <BR><FONT SIZE=3D2>> DocumentRoot = "/usr/local/apache2/htdocs"</FONT> <BR><FONT SIZE=3D2>> ProxyPassReverse = /ddrint <A HREF=3D"http://eghsnap2:8081/ddrint" = TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT> <BR><FONT SIZE=3D2>> ProxyPass /ddrint <A = HREF=3D"http://eghsnap2:8081/ddrint" = TARGET=3D"_blank">http://eghsnap2:8081/ddrint</A></FONT> <BR><FONT SIZE=3D2>> servername = www.emeademo.mobius.com</FONT> <BR><FONT SIZE=3D2>> serverpath = /ddrint/</FONT> <BR><FONT SIZE=3D2>> </virtualhost></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Thanks</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Richard</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><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> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Quoting Richard Birkett = <[email protected]>:</FONT> <BR><FONT SIZE=3D2>> > It should apply cleanly to recent = checkouts of 2.0 (with a few lines </FONT> <BR><FONT SIZE=3D2>> > offset).</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Thanks much. More reason to go to 2.0 = :).</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>> Geff</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT SIZE=3D2>></FONT> </P> <BR> </BODY> </HTML> ------_=_NextPart_001_01C44E2C.8696C2B2--