Thanks Perrin for the reply, 
>Most likely you are not actually in the Location block that you think
you're in
I am on the same Location block

>here's probably something wrong with another part of your conf file
which is preventing the request from actually being >>handled by this
block.

May be, Also does the Apache2 request object constructs itself
differently from Apache 1.3, Ultimately it is the from the request
object that we are trying to read($r->dir_config('somevar1')
Or should we use a different Handler, I tried substituting with
PerlResponseHandler but not with much help

Thanks
Sajid



-----Original Message-----
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 1:11 AM
To: Sajid Khan (WT01 - Computing Systems & Storage)
Cc: modperl@perl.apache.org
Subject: Re: Reading PerlSetVar in mod_perl2

On Wed, 2006-10-18 at 15:30 +0530, [EMAIL PROTECTED] wrote:

> <Location /someurl>
>   SSLRequireSSL
>   SetHandler            perl-script
>   PerlHandler           Apache::Hello
>   PerlSetVar            somevar1 1
>   PerlSetVar            somevar2 2
>   PerlSetVar            somevar3 3
>   PerlSetVar            somevar4 4
> </Location>

All of that looks fine.

> In the handler Hello, I was able to read all the variables set using
> PerlSetVar in apache 1.3 however in apache 2.0 (mod_perl 2) I am
> getting blank(null) whenever I read the values from Handler using (
> $r->dir_config('somevar1') etc) Can you please let me know possibilies

> where it could go wrong, I searched the web but with no great help.

Most likely you are not actually in the Location block that you think
you're in.  There's probably something wrong with another part of your
conf file which is preventing the request from actually being handled by
this block.

- Perrin




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