httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaitanya Nuguri" <Chaitanya.Nug...@ericssonservices.co.uk>
Subject RE: [users@httpd] Help needed with Location Directive
Date Mon, 23 Jul 2007 08:57:27 GMT

Thanks Boyle, for pointing that out. That worked.


-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: 20 July 2007 13:25
To: users@httpd.apache.org
Subject: RE: [users@httpd] Help needed with Location Directive


> -----Original Message-----
> From: ApacheIndian_chetu.gmail
> [mailto:apacheindian.chetu@googlemail.com] 
> Sent: Thursday, July 19, 2007 1:47 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Ericsson Services Limited 
Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2
8SG 
Registered Number in England and Wales: 3709800 
This communication is confidential and intended solely for the addressee(s). Any unauthorised
review, use, disclosure or distribution is prohibited. If you believe this message has been
sent to you in error, please notify the sender by replying to this transmission and delete
the message without disclosing it. Thank you. 
Ericsson Services Limited does not enter into contracts or contractual obligations via electronic
mail, unless otherwise agreed in writing between the parties concerned.
E-mail including attachments is susceptible to data corruption, interruption, unauthorised
amendment, tampering and viruses, and we only send and receive e-mails on the basis that we
are not liable for any such corruption, interception, amendment, tampering or viruses or any
consequences thereof. 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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


Mime
View raw message