You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Philip Blatter <ph...@jamit.de> on 2009/09/18 13:14:34 UTC

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

Re: mod_perl2 per directory

Posted by Philip Blatter <ph...@jamit.de>.
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_Parent_

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


regards,
Philip

mackenna@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
>


Re: mod_perl2 per directory

Posted by ma...@animalhead.com.
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