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.

http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=109184714017267&w=2

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to