cleverett has asked for the wisdom of the Perl Monks concerning the following question:
I wish to reuse various templates in toto between different URLs but allow different means of generating the information I fill the template with depending on the uri.
So far, I've tried using TT2PluginBase and TT2ServiceModule directives inside Location blocks inside my apache configuration file without success. For example, with TT2PluginBase I'm getting this error:
Syntax error on line 27 of /home/ceverett/apache/conf/physemp.affiliate.loc.conf:
TT2PluginBase not allowed here
using this conf snippet:
I get the same type error using the TT2ServiceModule directive inside a Location block.TT2Params all TT2Headers size TT2Trim On <Location /affiliate/report/> Options ExecCGI SetHandler perl-script AuthType Physemp::Auth AuthName Affiliate TT2PluginBase Physemp::Template::Plugin::User # line 27 PerlHandler Apache::Template </Location> <Location /account_exec/report/> Options ExecCGI SetHandler perl-script AuthType Physemp::Auth AuthName Affiliate TT2PluginBase Physemp::Template::Plugin::Admin PerlHandler Apache::Template </Location>
I'm using TT 2.10, Apache::Template 0.06, Apache 1.3.27 and mod_perl 1.28.
Is there a relatively straightforward way of modifying Apache::Template behavior per directory/location block?
Also, the Apache::Template docs don't say where specific configuration directives are allowed/forbidden. Ought I assume that all TT2* directives are forbidden inside Directory/Location blocks?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache::Template perl directory configuration
by Chmrr (Vicar) on Jul 26, 2003 at 20:36 UTC | |
by cleverett (Friar) on Jul 26, 2003 at 23:09 UTC | |
by cleverett (Friar) on Jul 26, 2003 at 21:40 UTC |