ProxyPass / several URL's

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*

Now, "script" is an url followed by all arguments like
script?test=3D123;hallo=3Dyes;123=3Dyes

So the star should indicate that everthing with "script" should be
matched.
Unfortunately it is not working.

Do I need to add RewriteRules, or some special regular expression??

Thank you very much for your help!

Kind Regards,

-Ueli Kessler

=2E

------_=_NextPart_001_01C37EB2.D93E084E
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>Iam runni=
ng an
Apache 2.0.40 Webserver who is acting as a proxy server for all incoming re=
quest
on our website.</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>We now ha=
ve several
redirection I must set up.</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>can pleas=
e tell me,
how I must set up ProxyPass and ProxyPassReverse, so that it is working
properly?<BR>Here is an extract from my httpd.conf file:</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2><BR>Proxy=
Pass
/test/script* <A
href=3D"http://test2.test.com/test/script">http://test2.test .com/test/scrip=
t</A>*</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>ProxyPass=

/test/script* <A
href=3D"http://test2.test.com/test/script">http://test2.test .com/test/scrip=
t</A>*</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>Now, "scr=
ipt" is an
url followed by all arguments like
script?test=3D123;hallo=3Dyes;123=3Dyes</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>So the st=
ar should
indicate that everthing with "script" should be matched.</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>Unfortuna=
tely it is
not working.</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial size=3D2>Do I need=
to add
RewriteRules, or some special regular expression??<BR><BR>Thank you very mu=
ch
for your help!<BR><BR>Kind Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=3D735112913-19092003><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D735112913-19092003>    <FONT face=3DArial=

size=3D2>-Ueli Kessler</FONT></SPAN></DIV>.
</BODY></HTML>

------_=_NextPart_001_01C37EB2.D93E084E--
Ueli Kessler [ Fr, 19 September 2003 15:35 ] [ ID #34746 ]

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 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/
Daniel Lopez [ Fr, 19 September 2003 15:03 ] [ ID #34747 ]

RE: ProxyPass / several URL's

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 [at] rawbyte.com]
Sent: Freitag, 19. September 2003 15:03
To: modproxy-dev [at] 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
> 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=3D123;hallo=3Dyes;123=3Dyes
>
> 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/

=2E

------------=_1063979700-3958-41--
Ueli Kessler [ Fr, 19 September 2003 15:54 ] [ ID #34748 ]

Re: ProxyPass / several URL's

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 [at] sharp.fm "There's a moon
over Bourbon Street
tonight..."
Graham Leggett [ Fr, 19 September 2003 17:07 ] [ ID #34749 ]
Webserver » gmane.comp.apache.mod-proxy » ProxyPass / several URL's

Vorheriges Thema: Default content-type header added on 304 in a reverse proxy configuration.
Nächstes Thema: special proxying