RE: ProxyPass / several URL's

"Ueli Kessler" <[email protected]> Fri, 19 Sep 2003 15:54:37 +0200
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
Hi Daniel,
Thank you very much for your help!! It works now!!

Have a nice weekend,

	-Ueli

-----Original Message-----
From: Daniel Lopez [mailto:[email protected]] 
Sent: Freitag, 19. September 2003 15:03
To: [email protected]
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=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/

.