Discussion:
ProxyPass / several URL's
Ueli Kessler
2003-09-19 13:35:11 UTC
Permalink
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.

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

Thank you very much for your help!

Kind Regards,

-Ueli Kessler

.
Daniel Lopez
2003-09-19 13:03:15 UTC
Permalink
Post by Ueli Kessler
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?
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/
Ueli Kessler
2003-09-19 13:54:37 UTC
Permalink
Hi Daniel,
Thank you very much for your help!! It works now!!

Have a nice weekend,

-Ueli

-----Original Message-----
From: Daniel Lopez [mailto:***@rawbyte.com]
Sent: Freitag, 19. September 2003 15:03
To: modproxy-***@apache.org
Subject: Re: ProxyPass / several URL's
Post by Ueli Kessler
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?
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/

.
Graham Leggett
2003-09-19 15:07:41 UTC
Permalink
Post by Ueli Kessler
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
--
-----------------------------------------
***@sharp.fm "There's a moon
over Bourbon Street
tonight..."
Loading...