mod_perl2 per directory

Hey there,

i've a strange problem... According to the mod_perl 2.0 server
configuration pages, the following should work:

<Location /__ias/jobserver>
SetHandler perl-script
PerlInterpStart 1
PerlInterpMax 1
PerlInterpMaxRequests 1000
PerlResponseHandler MyModule
</Location>

paradoxically starting my apache2 gives me the following error message:

"PerlInterpStart not allowed here"

What's wrong with my setup? Am i missing something?

Regards,
Philip
Philip Blatter [ Fr, 18 September 2009 13:14 ] [ ID #2016454 ]

Re: mod_perl2 per directory

On page http://perl.apache.org/docs/2.0/user/config/
config.html#mod_perl_Directives_Argument_Types_and_Allowed_L ocation

you can see the following line in the table that defines the scope of
the various directives:

PerlInterpStart TAKE1 SRV

SRV means "server scope" which to me means that it cannot be applied
to a Location.


On Sep 18, 2009, at 4:14 AM, Philip Blatter wrote:

> Hey there,
>
> i've a strange problem... According to the mod_perl 2.0 server
> configuration pages, the following should work:
>
> <Location /__ias/jobserver>
> SetHandler perl-script
> PerlInterpStart 1
> PerlInterpMax 1
> PerlInterpMaxRequests 1000
> PerlResponseHandler MyModule
> </Location>
>
> paradoxically starting my apache2 gives me the following error
> message:
>
> "PerlInterpStart not allowed here"
>
> What's wrong with my setup? Am i missing something?
>
> Regards,
> Philip
Craig or Merikay MacK [ Sa, 19 September 2009 03:43 ] [ ID #2016459 ]

Re: mod_perl2 per directory

Hey there,

thanks for the information - i've read that already. I suggest to fix
documentation on:

http://perl.apache.org/docs/2.0/user/config/config.html#C_Pa rent_

There is an example with PerlInterpStart in an <Location> scope!


regards,
Philip

mackenna [at] animalhead.com wrote:
> On page
> http://perl.apache.org/docs/2.0/user/config/config.html#mod_ perl_Directives_Argument_Types_and_Allowed_Location
>
>
> you can see the following line in the table that defines the scope of
> the various directives:
>
> PerlInterpStart TAKE1 SRV
>
> SRV means "server scope" which to me means that it cannot be applied
> to a Location.
>
>
> On Sep 18, 2009, at 4:14 AM, Philip Blatter wrote:
>
>> Hey there,
>>
>> i've a strange problem... According to the mod_perl 2.0 server
>> configuration pages, the following should work:
>>
>> <Location /__ias/jobserver>
>> SetHandler perl-script
>> PerlInterpStart 1
>> PerlInterpMax 1
>> PerlInterpMaxRequests 1000
>> PerlResponseHandler MyModule
>> </Location>
>>
>> paradoxically starting my apache2 gives me the following error message:
>>
>> "PerlInterpStart not allowed here"
>>
>> What's wrong with my setup? Am i missing something?
>>
>> Regards,
>> Philip
>
Philip Blatter [ So, 20 September 2009 14:34 ] [ ID #2016508 ]
Webserver » gmane.comp.apache.mod-perl » mod_perl2 per directory

Vorheriges Thema: How to verify Apache::DBI persistent connection
Nächstes Thema: Ways to scale a mod_perl site