perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Dunlap <j...@lariat.co>
Subject Re: PerlSetVar inside <Location> doesn't seem to work
Date Thu, 16 Jul 2015 00:31:37 GMT
Glad I could help!

On Wed, Jul 15, 2015 at 8:19 PM, Jim Garrison <jhg@jhmg.net> wrote:

> 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 (jhg@acm.org)
> PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88
>



-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*john@lariat.co <john@lariat.co>*

*Customer Service:*
877.268.6667
support@lariat.co

Mime
View raw message