Re: Setting up perl-virtual-host handlers from startup script or handler, not from apache config, not hardcoded

2012-05-22 Thread Ryan Gies
? $_[0] : $_[1]; # $r->is_initial_req is handy here $r->push_handlers(PerlResponseHandler => \&_response_handler); # For this request $r->handler('modperl'); # Unless set in Apache config return Apache2::Const::DECLINED; # Allow subsequent trans handlers to run }

Setting up perl-virtual-host handlers from startup script or handler, not from apache config, not hardcoded

2012-05-19 Thread Andrew Nugged
I can set handlers directly from Apache config: PerlResponseHandler code::A PerlResponseHandler code::B code A called only once and code B once too, only for specific Virtual Hosts. I need to make same config from my startup perl script, I want to read some own config data and then

Re: Changing apache config with mod_perl, doesnt work!

2009-11-22 Thread Philippe M. Chiasson
On 09-11-22 17:42 , Devrim Yasar wrote: > This script supposedly should take * out of *.domain.com, assign it to > $subdomain variable, and $subdomain should be put to AssignUserId. > > However, no matter how hard I try, I can't get this to work. I've been > working on this for days, and am really

Changing apache config with mod_perl, doesnt work!

2009-11-22 Thread Devrim Yasar
This script supposedly should take * out of *.domain.com, assign it to $subdomain variable, and $subdomain should be put to AssignUserId. However, no matter how hard I try, I can't get this to work. I've been working on this for days, and am really desperate. If you think this is a lot of w

Changing apache config with mod_perl, doesnt work!

2009-11-22 Thread Devrim Yasar
This script supposedly should take * out of *.domain.com, assign it to $subdomain variable, and $subdomain should be put to AssignUserId. However, no matter how hard I try, I can't get this to work. I've been working on this for days, and am really desperate. If you think this is a lot of w

Re: Apache config and mod_perl location?

2007-10-20 Thread Randy Kobes
On Sat, 20 Oct 2007, Michael Moon wrote: When I attempt to start apache I get the error Invalid command PerlModule. Obviously I don't have httpd.conf configured correctly, You need to first enable mod_perl in httpd.conf; see http://perl.apache.org/docs/2.0/user/config/config.html#Enabling_mo

RE: Apache config and mod_perl location?

2007-10-20 Thread Michael Moon
: modperl@perl.apache.org Subject: Apache config and mod_perl location? When I attempt to start apache I get the error Invalid command PerlModule. Obviously I don't have httpd.conf configured correctly, but in reading the instructions I don't understand what directory I am supposed

Apache config and mod_perl location?

2007-10-20 Thread Michael Moon
When I attempt to start apache I get the error Invalid command PerlModule. Obviously I don't have httpd.conf configured correctly, but in reading the instructions I don't understand what directory I am supposed to use for the Alias /perl/ directory. Make test and make install ran without

Re: Proper apache config directive for a homepage

2006-09-20 Thread Clinton Gormley
On Wed, 2006-09-20 at 08:12 -0700, Dave Viner wrote: > Hi, > > I'm trying to set a special Perl handler for the "homepage" or index > page of a site. A directive like: > > > SetHandler perl-script > PerlResponseHandler Cool::Handler > > > causes a

Proper apache config directive for a homepage

2006-09-20 Thread Dave Viner
Hi, I'm trying to set a special Perl handler for the "homepage" or index page of a site. A directive like: SetHandler perl-script PerlResponseHandler Cool::Handler causes all requests to be served by Cool::Handler. However, I want only requests t

RE: RE: Apache config

2005-07-20 Thread Perrin Harkins
do that, it's pretty simple. Nothing mod_perl-specific. Just use the standard DirectoryIndex stuff. > and set execute perm on 1 of the dirs in the apache config ExecCGI, as shown in those docs. > if some1 can post a quick example and maybe update the online docs. They left > me

RE: RE: Apache config

2005-07-19 Thread Jacob Jarick
erl 2.0 working with apache thanks to INSTALL but the scripts fail randomly. >From memory when I used to do alot more modperl setups in 1.3 shouldnt u have to add: the module loading line Line that says execute .pl add index.pl to indexes and set execute perm on 1 of the dirs in the apache conf

Re: Apache config

2005-07-18 Thread Perrin Harkins
Tom Schindl wrote: Isn't he talking about mp2 "But alas modperl 1.x no such luck" - Perrin

Re: Apache config

2005-07-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Perrin Harkins schrieb: > Jacob Jarick wrote: > >> The installation documents are pretty good but I cant help but be >> frustrated when there is no example of the lines to add to httpd.conf . >> I Have managed to configure mod_perl 2.0 with apache, t

Re: Apache config

2005-07-17 Thread Perrin Harkins
Jacob Jarick wrote: The installation documents are pretty good but I cant help but be frustrated when there is no example of the lines to add to httpd.conf . I Have managed to configure mod_perl 2.0 with apache, the INSTALL guide in the tarball has the few lines needed. But alas modperl 1.x no

Apache config

2005-07-17 Thread Jacob Jarick
The installation documents are pretty good but I cant help but be frustrated when there is no example of the lines to add to httpd.conf . I Have managed to configure mod_perl 2.0 with apache, the INSTALL guide in the tarball has the few lines needed. But alas modperl 1.x no such luck. Could some1