RE: Help needed with Location Directive

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

 



> -----Original Message-----
> From: ApacheIndian_chetu.gmail 
> [mailto:apacheindian.chetu@xxxxxxxxxxxxxx] 
> Sent: Thursday, July 19, 2007 1:47 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject:  Help needed with Location Directive
> 
> Hi,
> 
> I have the below two Location directives configured in my httpd.conf
> (using with Apache HTTP Server 2.0.50 ),  The idea is to seperate only
> the "/test123" urls and send them to a different server, the problem
> is all the urls including the ones with /test123 are going to the
> second one. Am I missing something or do I need to do something else
> to configure it to work correctly ?

Processing rules for the various container objects are a bit complicated
and I'm not an expert, but I did notice that in the docs
(http://httpd.apache.org/docs/2.2/mod/core.html#location) it says:
"<Location> sections are processed in the order they appear in the
configuration file".

If you take that literally, then it means that the second container
overrides the first because it comes second and also applies to the URL.
NB - this goes against the usual "more-specific applies" rule that works
with Directory containers...

Anyway, try simply changing the order of the containers and see what
happens.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> <Location /test123>
>     SetHandler weblogic-handler
>     WebLogicCluster 172.26.251.175:9000
>     ConnectTimeoutSecs 1
>     ConnectRetrySecs 1
>     WLIOTimeoutSecs 200
>     Idempotent OFF
>     WLLogFile /var/opt/projects/sdf5.2/elatalogs/billing/apache/logs/
> server00x/webapache.log
>     Debug OFF
>     ErrorPage http://172.26.251.177/manual/invoking.html 
> <http://172.26.251.177/manual/invoking.html> 
> </Location>
> 
> <Location />
>     SetHandler weblogic-handler
>     WebLogicCluster 172.26.251.176:8005,172.26.251.177:8007
>     ConnectTimeoutSecs 1
>     ConnectRetrySecs 1
>     WLIOTimeoutSecs 200
>     Idempotent OFF
>     WLLogFile /var/opt/projects/sdf5.2/elatalogs/billing/apache/logs/
> server00x/webapache.log
>     Debug OFF
>     ErrorPage http://172.26.251.177/manual/invoking.html 
> <http://172.26.251.177/manual/invoking.html> 
> </Location>
> 
> Thanks,
> Chaitanya
> 
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

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