On 10/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I am attempting to forward requests sent to Apache httpd server to a
> cluster of appservers sitting behind Apache. I am using the <Location>
> directive to achieve this functionality.
> But am not sure how to force Apache to handle this particular situation:
> <Location "/xfer">
> send to either server1 or server2
> </Location>
>
> <Location "/xfer/1">
> send to server 1
> </Location>
>
> <Location "/xfer/2">
> send to server 2
> </Location>
>
> What is happening is that  Apache takes the first part of the URL path(ie.
> "/xfer") and forwards the request.  It ignores the "/1" and "/2"  in the
> path as soon as it matches /xfer.
> How can i force it to match the whole pattern specified in the Location
> directive? (e.g http://acme.com/xfer/1/xyzServlet - send to server 1,
> http://acme.com/xfer/2/xyzServlet - send to server 2)

Use <LocationMatch ^/xfer$>

But note also that in most cases, later <Location> sections will
override earlier ones. So there is likely also a problem with whatever
module you are using to impliment "send to server", since it isn't
respecting apache config precendence rules.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to