Thanks Philips for the reply

>>Last location directive wins for the same location is why.  This is an
httpd thing having nothing to do with mod_perl.

I see that last Location directive is winning, but both the handlers are
still called, however merging the Location works but is there any
documentation which says that in Apache 2.0, This(two location) seems to
be working in Apache 1.3, Please let me know

Thanks


-----Original Message-----
From: Philip M. Gollucci [mailto:[EMAIL PROTECTED]
Sent: Monday, October 23, 2006 3:23 AM
To: sajid khan
Cc: Perrin Harkins; Sajid Khan (WT01 - Computing Systems & Storage);
modperl@perl.apache.org
Subject: Re: Reading PerlSetVar in mod_perl2

> //<Location /someurl>///
> /SSLRequireSSL
> //SetHandler            perl-script//
> //////PerlSetVar            somevar1    1
> ////PerlSetVar            somevar2   2
> ////PerlHandler           Apache::Hello//
> //</Location>
> //
> and then below that
>
> <Location /someurl>
> PerlAccessHandler   Apache::Hello1
> </Location>

You want this:
<Location /someurl>
   SSLRequireSSL
   SetHandler            perl-script
   PerlSetVar            somevar1    1
   PerlSetVar            somevar2   2
   PerlResponseHandler   Apache::Hello->handler
   PerlAccessHandler     Apache::Hello1->access
</Location>


Last location directive wins for the same location is why.  This is an
httpd thing having nothing to do with mod_perl.

You might find the following sample httpd.conf useful.


--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 Consultant /
http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

When I call your name, Girl, it starts to flame Burning in my heart,
Tearing it all apart..
No matter how I try My love I cannot hide....


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to