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

John Dunlap <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC5eUSvasaj8UDJ_D6pokZ4GKoYoqmAhk8+K+r_+WB=hzxJYxg@mail.gmail.com>
Glad I could help!

On Wed, Jul 15, 2015 at 8:19 PM, Jim Garrison <[email protected]> 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 ([email protected])
> PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88
>



-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*[email protected] <[email protected]>*

*Customer Service:*
877.268.6667
[email protected]
100x60.png (image/png, 2.1 KB) - not displayed
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.