Re: PerlSetVar inside <Location> doesn't seem to work

Jim Garrison <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 7/15/2015 5:07 PM, Jim Garrison wrote:
> I have the following config
> 
> 
[snip]
> 
> However it's getting empty strings for the values.  This was working
> when the PerlSetVar directives were outside the VirtualHost block.

It seems when you access dir_config through the ServerRec you only get
values set at the server level. To get the VirtualHost level variables
you must use the RequestRec.  Makes sense, I guess.

Thanks to John Dunlap... your example pointed me in the right direction.

-- 
Jim Garrison ([email protected])
PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.