On 03 Dec 2003 07:49:54 -0800
[EMAIL PROTECTED] (Randal L. Schwartz) wrote:

> >>>>> "Enrico" == Enrico Sorcinelli <[EMAIL PROTECTED]> writes:
> 
> >> What about TT2* configuration parameters in .htaccess?
> 
> Enrico> There isn't here the problem.
> Enrico> All TT2* directives can be used in .htaccess file.
> 
> But only if "PerlModule Apache::Template" has been pulled in
> in httpd.conf, unless something has changed since the last time
> I dumped core repeatedly by putting that in an .htaccess file.

I was mistaken! Sorry :-( 
I just tested that it isn't possible to put TT2* directives in .htaccess, even
if "PerlModule Apache::Template" is in httpd.conf.

> The problem is that Apache::Template defines conf directives, which
> alter the conf parser for the remainder of its life.  You can't do
> that on a per-hit basis without taking some fallout.
> 
> Unless somehow that's all been fixed.  Has it?

Last Apache::Template version (0.08) has the same behaviour.

I've patched Makefile.PL (I suppose you've already done it :-)) by substituting
each occurence of 'ACCESS_CONF' with 'ACCESS_CONF | OR_FILEINFO' (I've chosen
OR_FILEINFO constant because "AllowOverride FileInfo" is already necessary in
order to use "SetHandler perl-script" directive in .htaccess files) and I
rebuilt the module. 

Now it is possible to use TT2* directives inside .htaccess files, _BUT_:

   1. a seg fault happens if "PerlModule Apache::Template" isn't in server .conf
      files 

   2. Currently, I don't know which impact could have in the rest of module...
      :-)

Regards

by

        - Enrico


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to