Re: ProxyPass / several URL"s
am 19.09.2003 15:03:15 von Daniel Lopez
On Fri, Sep 19, 2003 at 03:35:11PM +0200, Ueli Kessler wrote:
> Hello,
> Iam running an Apache 2.0.40 Webserver who is acting as a proxy server
> for all incoming request on our website.
> We now have several redirection I must set up.
> can please tell me, how I must set up ProxyPass and ProxyPassReverse, so
> that it is working properly?
> Here is an extract from my httpd.conf file:
>
> ProxyPass /test/script* http://test2.test.com/test/script*
> ProxyPass /test/script* http://test2.test.com/test/script*
>
> Now, "script" is an url followed by all arguments like
> script?test=123;hallo=yes;123=yes
>
> So the star should indicate that everthing with "script" should be
> matched.
> Unfortunately it is not working.
ProxyPass will match the prefix, you just need to do
ProxyPass /test/script http://test2.test.com/test/script
ProxyPassReverse /test/script http://test2.test.com/test/script
Cheers
Daniel
--
Teach Yourself Apache 2 -- http://apacheworld.org/ty24/
ProxyPass / several URL"s
am 19.09.2003 15:35:11 von Ueli Kessler
This is a multi-part message in MIME format...
------_=_NextPart_001_01C37EB2.D93E084E
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello,
Iam running an Apache 2.0.40 Webserver who is acting as a proxy server
for all incoming request on our website.
We now have several redirection I must set up.
can please tell me, how I must set up ProxyPass and ProxyPassReverse, so
that it is working properly?
Here is an extract from my httpd.conf file:
ProxyPass /test/script* http://test2.test.com/test/script*
ProxyPass /test/script* http://test2.test.com/test/script*
=20
Now, "script" is an url followed by all arguments like
script?test=3D123;hallo=3Dyes;123=3Dyes
=20
So the star should indicate that everthing with "script" should be
matched.
Unfortunately it is not working.
=20
Do I need to add RewriteRules, or some special regular expression??
Thank you very much for your help!
Kind Regards,
=20
-Ueli Kessler
------_=_NextPart_001_01C37EB2.D93E084E
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message
size=3D2>Hello,
Iam runni=
ng an=20
Apache 2.0.40 Webserver who is acting as a proxy server for all incoming re=
quest=20
on our website.
We now ha=
ve several=20
redirection I must set up.
can pleas=
e tell me,=20
how I must set up ProxyPass and ProxyPassReverse, so that it is working=20
properly?
Here is an extract from my httpd.conf file:
Proxy=
Pass=20
/test/script*
href=3D"http://test2.test.com/test/script">http://test2.test .com/test/scrip=
t*
ProxyPass=
=20
/test/script*
href=3D"http://test2.test.com/test/script">http://test2.test .com/test/scrip=
t*
size=3D2>
Now, "scr=
ipt" is an=20
url followed by all arguments like=20
script?test=3D123;hallo=3Dyes;123=3Dyes
size=3D2>
So the st=
ar should=20
indicate that everthing with "script" should be matched.
Unfortuna=
tely it is=20
not working.
size=3D2>
Do I need=
to add=20
RewriteRules, or some special regular expression??
Thank you very mu=
ch=20
for your help!
Kind Regards,
size=3D2>
=20
size=3D2>-Ueli Kessler
.
------_=_NextPart_001_01C37EB2.D93E084E--
RE: ProxyPass / several URL"s
am 19.09.2003 15:54:37 von Ueli Kessler
This is a multi-part message in MIME format...
------------=_1063979700-3958-41
content-class: urn:content-classes:message
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi Daniel,
Thank you very much for your help!! It works now!!
Have a nice weekend,
-Ueli
-----Original Message-----
From: Daniel Lopez [mailto:daniel@rawbyte.com]=20
Sent: Freitag, 19. September 2003 15:03
To: modproxy-dev@apache.org
Subject: Re: ProxyPass / several URL's
On Fri, Sep 19, 2003 at 03:35:11PM +0200, Ueli Kessler wrote:
> Hello,
> Iam running an Apache 2.0.40 Webserver who is acting as a proxy server
> for all incoming request on our website. We now have several=20
> redirection I must set up. can please tell me, how I must set up=20
> ProxyPass and ProxyPassReverse, so that it is working properly?
> Here is an extract from my httpd.conf file:
>=20
> ProxyPass /test/script* http://test2.test.com/test/script*
> ProxyPass /test/script* http://test2.test.com/test/script*
>
> Now, "script" is an url followed by all arguments like=20
> script?test=3D123;hallo=3Dyes;123=3Dyes
>
> So the star should indicate that everthing with "script" should be=20
> matched. Unfortunately it is not working.
ProxyPass will match the prefix, you just need to do
ProxyPass /test/script http://test2.test.com/test/script
ProxyPassReverse /test/script http://test2.test.com/test/script
Cheers
Daniel
--=20
Teach Yourself Apache 2 -- http://apacheworld.org/ty24/
------------=_1063979700-3958-41--
Re: ProxyPass / several URL"s
am 19.09.2003 17:07:41 von Graham Leggett
Ueli Kessler wrote:
> ProxyPass /test/script* http://test2.test.com/test/script*
> ProxyPass /test/script* http://test2.test.com/test/script*
>
> Now, "script" is an url followed by all arguments like
> script?test=123;hallo=yes;123=yes
>
> So the star should indicate that everthing with "script" should be matched.
> Unfortunately it is not working.
The parameter is a prefix match, not a regular expression match - take
the *'s away and it will work.
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."