FW: proxy with a specific source IP?

FW: proxy with a specific source IP?

am 09.06.2004 12:53:16 von Richard Skeggs

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


DocumentRoot "/usr/local/apache2/htdocs"
ProxyPassReverse /esav http://eghsnap1:8081/esav
ProxyPass /esav http://eghsnap1:8081/esav
servername www.emeademo.mobius.com
serverpath /esav/



DocumentRoot "/usr/local/apache2/htdocs"
ProxyPassReverse /ddrint http://eghsnap2:8081/ddrint
ProxyPass /ddrint http://eghsnap2:8081/ddrint
servername www.emeademo.mobius.com
serverpath /ddrint/


Thanks

Richard


-----Original Message-----
From: Geff [mailto:geff@pier64.com]
Sent: 08 June 2004 19:24
To: modproxy-dev@apache.org
Subject: Re: proxy with a specific source IP?


Quoting Richard Birkett :
> 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




charset=3Dus-ascii">
5.5.2658.2">
FW: proxy with a specific source IP?





I am using apache2 to try and map



TARGET=3D"_blank">http://eghapp/esav  to  HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


TARGET=3D"_blank">http://eghapp/ddrint  to  HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">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 HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


    ProxyPass /esav HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


    servername =
www.emeademo.mobius.com


    serverpath /esav/

</virtualhost>



<virtualhost 10.14.1.150>

    DocumentRoot =
"/usr/local/apache2/htdocs"


    ProxyPassReverse /ddrint HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint


    ProxyPass /ddrint HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint


    servername =
www.emeademo.mobius.com


    serverpath /ddrint/

</virtualhost>



Thanks



Richard





-----Original Message-----

From: Geff [ HREF=3D"mailto:geff@pier64.com">mailto:geff@pier64.com]

Sent: 08 June 2004 19:24

To: modproxy-dev@apache.org

Subject: Re: proxy with a specific source IP?





Quoting Richard Birkett =
<richard-apache@musicbox.net>:


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

Re: FW: proxy with a specific source IP?

am 09.06.2004 16:00:16 von Geff

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


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


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

Geff

Quoting Richard Skeggs :

>
> 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
>
>
> DocumentRoot "/usr/local/apache2/htdocs"
> ProxyPassReverse /esav http://eghsnap1:8081/esav
> ProxyPass /esav http://eghsnap1:8081/esav
> servername www.emeademo.mobius.com
> serverpath /esav/
>

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

>
> Thanks
>
> Richard
>
>
> -----Original Message-----
> From: Geff [mailto:geff@pier64.com]
> Sent: 08 June 2004 19:24
> To: modproxy-dev@apache.org
> Subject: Re: proxy with a specific source IP?
>
>
> Quoting Richard Birkett :
> > 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
>
>

RE: FW: proxy with a specific source IP?

am 09.06.2004 16:17:41 von Richard Skeggs

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:geff@pier64.com]
Sent: 09 June 2004 15:00
To: modproxy-dev@apache.org
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:


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


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

Geff

Quoting Richard Skeggs :

>
> 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
>
>
> DocumentRoot "/usr/local/apache2/htdocs"
> ProxyPassReverse /esav http://eghsnap1:8081/esav
> ProxyPass /esav http://eghsnap1:8081/esav
> servername www.emeademo.mobius.com
> serverpath /esav/
>

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

>
> Thanks
>
> Richard
>
>
> -----Original Message-----
> From: Geff [mailto:geff@pier64.com]
> Sent: 08 June 2004 19:24
> To: modproxy-dev@apache.org
> Subject: Re: proxy with a specific source IP?
>
>
> Quoting Richard Birkett :
> > 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




charset=3Dus-ascii">
5.5.2658.2">
RE: FW: proxy with a specific source IP?



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



Thank you



Richard





-----Original Message-----

From: Geff [ HREF=3D"mailto:geff@pier64.com">mailto:geff@pier64.com]

Sent: 09 June 2004 15:00

To: modproxy-dev@apache.org

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 HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


    ProxyPass /esav HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


    ProxyPassReverse /ddrint HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint


    ProxyPass /ddrint HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">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 =
<RSKEGGS@mobius.com>:



>

> I am using apache2 to try and map

>

> TARGET=3D"_blank">http://eghapp/esav  to  HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav
HREF=3D"http://eghapp/ddrint" =
TARGET=3D"_blank">http://eghapp/ddrint
 


> to  HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">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 =
TARGET=3D"_blank">http://eghsnap1:8081/esav


>     ProxyPass /esav HREF=3D"http://eghsnap1:8081/esav" =
TARGET=3D"_blank">http://eghsnap1:8081/esav


>     servername =
www.emeademo.mobius.com


>     serverpath =
/esav/


> </virtualhost>

>

> <virtualhost 10.14.1.150>

>     DocumentRoot =
"/usr/local/apache2/htdocs"


>     ProxyPassReverse =
/ddrint TARGET=3D"_blank">http://eghsnap2:8081/ddrint


>     ProxyPass /ddrint HREF=3D"http://eghsnap2:8081/ddrint" =
TARGET=3D"_blank">http://eghsnap2:8081/ddrint


>     servername =
www.emeademo.mobius.com


>     serverpath =
/ddrint/


> </virtualhost>

>

> Thanks

>

> Richard

>

>

> -----Original Message-----

> From: Geff [ HREF=3D"mailto:geff@pier64.com">mailto:geff@pier64.com]

> Sent: 08 June 2004 19:24

> To: modproxy-dev@apache.org

> Subject: Re: proxy with a specific source =
IP?


>

>

> Quoting Richard Birkett =
<richard-apache@musicbox.net>:


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

RE: FW: proxy with a specific source IP?

am 09.06.2004 16:18:40 von Geff

Quoting Richard Skeggs :

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

First time for everything. :)

Enjoy, glad I could help.

Geff

>
> Thank you
>
> Richard
>
>
> -----Original Message-----
> From: Geff [mailto:geff@pier64.com]
> Sent: 09 June 2004 15:00
> To: modproxy-dev@apache.org
> 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:
>
>
> 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
>

>
> instead of what you have? I wasn't aware that you could define a virtual
> host twice.
>
> Geff
>
> Quoting Richard Skeggs :
>
> >
> > 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
> >
> >
> > DocumentRoot "/usr/local/apache2/htdocs"
> > ProxyPassReverse /esav http://eghsnap1:8081/esav
> > ProxyPass /esav http://eghsnap1:8081/esav
> > servername www.emeademo.mobius.com
> > serverpath /esav/
> >

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

> >
> > Thanks
> >
> > Richard
> >
> >
> > -----Original Message-----
> > From: Geff [mailto:geff@pier64.com]
> > Sent: 08 June 2004 19:24
> > To: modproxy-dev@apache.org
> > Subject: Re: proxy with a specific source IP?
> >
> >
> > Quoting Richard Birkett :
> > > 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
> >
> >
>
>
>

Re: FW: proxy with a specific source IP?

am 09.06.2004 16:39:11 von Graham Leggett

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

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

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


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:



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



Regards,
Graham
--