perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <>
Subject Re: <Perl>, PerlModule, PerlRequire in .htaccess
Date Sat, 07 Aug 2004 02:53:38 GMT
Philippe M. Chiasson wrote:

> Stas Bekman wrote:
>> Philippe M. Chiasson wrote:

>>> The question I have for all, is how can we make a directive support 
>>> .htaccess without
>>> also allowing it in blocks. AFAIK, the httpd API only allows OR_ALL 
>>> for this and
>>> it's both .htaccess and blocks.
>> How was this done in mp1?
> Just found out there is a way to tell them apart (from mp1). 
> cmd_param->path is NULL unless
> you are in .htaccess context.
> So, the way to fix this would be to change the wanted directives to 
> OR_ALL and create a macro
> to slap at the beginning of each of them that check for param->path != 
> null or bombs out. Working
> on it.
It's in and the macro is called MP_CHECK_SERVER_OR_HTACCESS_CONTEXT.

So now, <Perl>  PerlModule and PerlRequire will be honored in .htaccess 
and will be
executed on each request.

View raw message