Re: Help with Apache <Location> directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua,

Thanks for your suggestion.

> Use <LocationMatch ^/xfer$>

Does this mean any URL that has /xfer should be passed along by the
Location directive. But i do not see that happening.
The example that i gave was a bit off from my actual problem, where the
request coming in is http://acme.com/xfer/xfer/Servlet.....

To handle this request, i attempted to use <LocationMatch ^/xfer/xfer$>
but apache did not recognize the incoming URL as matching this and rejected
the request. I am not very fluent in Regex, what am i missing here?

> 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.

I am using the WebLogic plugin module. If i understand you right what you
are saying is that if the request coming in has the format
/xfer/xfer/1/Servlet, even
if there is a directive with "/xfer/xfer" earlier in the Location list, it
should be overriden by "/xfer/xfer/1" since it is later in the Locations
list.
I did not realize that there was a Locations precedence list based on its
position within the conf file.

Thanks

Ramdas

jslive@xxxxxxxxx wrote on 10/01/2007 02:37:21 PM:

> On 10/1/07, Ramdas.Hegde@xxxxxxxxxxx <Ramdas.Hegde@xxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux