"SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread André Warnier
Hi again. Assuming this kind of configuration : SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule .. is there any way, in MyNiftyModule, to "get at" this "gif-image" variable ? Such as, would I find it as $ENV{'gif-image'} ? What kind of

Re: Apache2 filter

2015-10-02 Thread André Warnier
On 02.10.2015 10:19, James Smith wrote: perl -cw sometimes throws errors with mod_perl code - as it isn't running in the Apache environment... I get the same warning testing my output filter handler when running with -cw - but it works well in Apache...! This begs for a follow-up question,

Re: Apache2 filter

2015-10-02 Thread James Smith
perl -cw sometimes throws errors with mod_perl code - as it isn't running in the Apache environment... I get the same warning testing my output filter handler when running with -cw - but it works well in Apache...! On 10/1/2015 6:59 PM, A. Warnier wrote: Hi. I am trying to write an Apache2

Re: my mod_perl project

2015-10-02 Thread viva marai
I hadn't planned on open sourcing it - I was partly doing it to learn the technologies myself - so it's not in a polished enough state to be open sourced. But I'll keep that in mind and try to clean up the code so that eventually it can be open sourced. thanks! On Thu, Oct 1, 2015 at 7:23 PM,

Re: my mod_perl project

2015-10-02 Thread Fred Moyer
I'm a believer that open sourcing something is the process by which it becomes polished. There's a saying that CPAN is successful because of the volume of sh*t uploaded to it, not in spite of it. I'd say don't worry that it isn't polished - working code > pretty code. On Fri, Oct 2, 2015 at 9:21

Re: my mod_perl project

2015-10-02 Thread Bruce Johnson
And I’d like to just poke at it to see what a working mod_perl site looks like, because all the programming examples I’ve ever found are pretty trivial. Yes, it's easy to make a website that only ever says ‘mod_perl rocks’ :-/ > On Oct 2, 2015, at 11:22 AM, Fred Moyer

Re: my mod_perl project

2015-10-02 Thread Fred Moyer
This is a captive portal I wrote in mod_perl - https://github.com/redhotpenguin/App-SilverSplash Here's a backend app I wrote for managing ads on wifi networks - https://github.com/redhotpenguin/SL/tree/master/SL-App Both are far from polished - I'm sure you can find better examples out there :)

Re: "SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread Michael A. Capone
In my code, I do: SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule PerlOptions +SetupEnv And then, yes, I have access to $ENV{'gif-image'}, with a value of "1". Alternatively, i can SetEnvIf Request_URI \.gif$ gif-image=YES ...

Re: my mod_perl project

2015-10-02 Thread Bruce Johnson
Thanks! > On Oct 2, 2015, at 1:44 PM, Fred Moyer wrote: > > This is a captive portal I wrote in mod_perl - > https://github.com/redhotpenguin/App-SilverSplash > > Here's a backend app I wrote for managing ads on wifi networks - >