Re: PerlSetVar inside doesn't seem to work

2015-07-15 Thread John Dunlap
Glad I could help! On Wed, Jul 15, 2015 at 8:19 PM, Jim Garrison 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 Vi

Re: PerlSetVar inside doesn't seem to work

2015-07-15 Thread Jim Garrison
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

Re: PerlSetVar inside doesn't seem to work

2015-07-15 Thread John Dunlap
I'm also using a virtual host, though I place my PerlSetVar without a . This is the code that I use to extract them: foreach my $apache_key (CORE::keys %{$apache->dir_config}) { $literals{$apache_key} = $apache->dir_config->{$apache_key}; } In this example, $apache is an instance

Re: PerlSetVar inside doesn't seem to work

2015-07-15 Thread John Dunlap
*within a On Wed, Jul 15, 2015 at 8:12 PM, John Dunlap wrote: > I'm also using a virtual host, though I place my PerlSetVar without a > . This is the code that I use to extract them: > > foreach my $apache_key (CORE::keys %{$apache->dir_config}) { > $literals{$apache_key} = $apache->dir

Re: PerlSetVar behaviour within directive

2009-01-23 Thread Michael Ludwig
Pat Downey schrieb: I guess I might have to modify the module to recognise another couple of variables say CrowdAllowedWriteGroups and CrowdAllowedReadGroups and not worry about the directives as I think I'm using them in a way that wasn't intended. That's what I think, too. The relevant conc

Re: PerlSetVar behaviour within directive

2009-01-23 Thread Pat Downey
2009/1/23 Torsten Foertsch > PerlSetVar CrowdAllowedGroups reader,writer > Require valid-user > >PerlSetVar CrowdAllowedGroups writer > > Thanks for the response Torsten, unfortunately this still exhibits the same behaviour that I was experiencing before. In both your example and the

Re: PerlSetVar behaviour within directive

2009-01-23 Thread Torsten Foertsch
On Fri 23 Jan 2009, Pat Downey wrote: >   >     PerlSetVar CrowdAllowedGroups reader,writer >     Require valid-user >   >   >     PerlSetVar CrowdAllowedGroups writer >     Require valid-user >   > > > What I'd like is for members of the reader or writer groups to have > GET access and only m

Re: PerlSetVar to empty

2008-10-14 Thread Perrin Harkins
On Tue, Oct 14, 2008 at 10:03 AM, André Warnier <[EMAIL PROTECTED]> wrote: > , but in a a specific , I would like to reset this to > > PerlSetVar myvar "" I've never done this, but did you try undef? Or maybe 0, if you just want to test for true. - Perrin

Re: PerlSetVar

2006-08-03 Thread Perrin Harkins
On Thu, 2006-08-03 at 08:47 +0300, Vladimir S. Tikhonjuk wrote: > Well, now I'll try to explain why I have asked such question. I have > startup.pl with connect_on_init dunction. > Also, I want to use Apache::AuthDBI. And I want options for > Apache::DBI->connect(...) to be stored into httpd.co

Re: PerlSetVar

2006-08-03 Thread Jonathan Vanasco
Well, now I'll try to explain why I have asked such question. I have startup.pl with connect_on_init dunction. Also, I want to use Apache::AuthDBI. And I want options for Apache::DBI->connect(...) to be stored into httpd.conf or another but the only place. I think that I could declare

Re: PerlSetVar

2006-08-02 Thread Vladimir S. Tikhonjuk
Philip M. Gollucci пишет: >Vladimir S. Tikhonjuk wrote: > > >>Philip M. Gollucci пишет: >> >> >> >>>Vladimir S. Tikhonjuk wrote: >>> >>> >>> >>> I set in httpd.conf variable like: PerlSetVar var test; How can I get it in the startup.pl script ?

Re: PerlSetVar

2006-08-02 Thread Philip M. Gollucci
Vladimir S. Tikhonjuk wrote: > Philip M. Gollucci пишет: > >> Vladimir S. Tikhonjuk wrote: >> >> >>> I set in httpd.conf variable like: PerlSetVar var test; >>> >>> How can I get it in the startup.pl script ? >>> >>> >> http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetVar

Re: PerlSetVar

2006-08-02 Thread Jonathan Vanasco
On Aug 2, 2006, at 7:18 AM, Vladimir S. Tikhonjuk wrote: Well, nice advise, but where can I get $r ( Apache2::RequestRec ) variable in startup.pl script ? In handler script - everything is O.K. But startup.pl! You can't. Apache2::RequestRec is a per-request variable. startup.pl/httpd.conf ar

Re: PerlSetVar

2006-08-02 Thread Vladimir S. Tikhonjuk
Philip M. Gollucci пишет: >Vladimir S. Tikhonjuk wrote: > > >>I set in httpd.conf variable like: PerlSetVar var test; >> >>How can I get it in the startup.pl script ? >> >> >http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetVar_ > >You might want to read and re-read and re

Re: PerlSetVar

2006-08-02 Thread Philip M. Gollucci
Vladimir S. Tikhonjuk wrote: > I set in httpd.conf variable like: PerlSetVar var test; > > How can I get it in the startup.pl script ? http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetVar_ You might want to read and re-read and re-read and re-read The 2.0 Users Guide here

Re: PerlSetVar with '0' value

2003-11-26 Thread Stas Bekman
Enrico Sorcinelli wrote: [...] Index: src/modules/perl/Apache.xs [...] -if (!SvTRUE(RETVAL)) { +if (!SvOK(RETVAL)) { [...] Hi Geoff, the patch seems to work fine. I've applied it over mp 1.29 (with Apache 1.3.28) Since this is a bug, fixing it is a right thing to do. If someone was relying

Re: PerlSetVar with '0' value

2003-11-26 Thread Enrico Sorcinelli
On Tue, 25 Nov 2003 15:47:07 -0500 Geoffrey Young <[EMAIL PROTECTED]> wrote: > > I'll > > take a look at 1.0 "soonish" > > it looks like the logic is pretty much the same in 1.0 as well. > > please try this (untested) patch and let me know if it fixes things for you. > > --Geoff > > Index: sr

Re: PerlSetVar with '0' value

2003-11-26 Thread Enrico Sorcinelli
On Tue, 25 Nov 2003 15:34:16 -0500 Geoffrey Young <[EMAIL PROTECTED]> wrote: > Enrico Sorcinelli wrote: > > Hi all, > >> > > I have this PerlSetVar behaviour. Suppose to have: > > > > > > SetHander perl-script > > PerlSetVar Something 0 > > PerlResponseHa

Re: PerlSetVar with '0' value

2003-11-25 Thread Geoffrey Young
> I'll > take a look at 1.0 "soonish" it looks like the logic is pretty much the same in 1.0 as well. please try this (untested) patch and let me know if it fixes things for you. --Geoff Index: src/modules/perl/Apache.xs === RCS f

Re: PerlSetVar with '0' value

2003-11-25 Thread Geoffrey Young
Enrico Sorcinelli wrote: > Hi all, > > I have this PerlSetVar behaviour. Suppose to have: > > > SetHander perl-script > PerlSetVar Something 0 > PerlResponseHandler MyModule > > > But in MyModule.pm, $r->dir_config('Something') returns an

Re: PerlSetVar with '0' value

2003-11-17 Thread Geoffrey Young
Enrico Sorcinelli wrote: Hi all, I have this PerlSetVar behaviour. Suppose to have: SetHander perl-script PerlSetVar Something 0 PerlResponseHandler MyModule But in MyModule.pm, $r->dir_config('Something') returns an undef value