I wish to reuse various templates in toto between different URLs but have different
means of providing 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.  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:

  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 here

    PerlHandler         Apache::Template
  </Location>

  <Location /account_exec/report/>
    Options             ExecCGI
    SetHandler          perl-script

    AuthType            Physemp::Auth
    AuthName            Affiliate

    TT2PluginBase       Physemp::Template::Plugin::Admin  # <== line 27 here

    PerlHandler         Apache::Template
  </Location>

I get the same type error using the TT2ServiceModule directive inside a Location
block.

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?

Reply via email to