I am having problem with Apache::Template in a multiple virtual host
envrionment.
Here is the httpd.conf segment to ilustrate setup.
# Turn on Apache::Template
PerlModule Apache::Template
TT2Trim On
TT2PostChomp On
TT2EvalPerl On
<VirtualHost 123.456.789.000>
ServerAdmin joe
DocumentRoot /usr/local/www.host1.com
ServerName www.host1.com
TT2IncludePath /usr/local/www.host1.com/lib
TT2Error error
TT2PreProcess config header
TT2PostProcess footer
ErrorLog logs/www.host1.com-error_log
CustomLog logs/www.host1.com-access_log combined
ScriptAlias /cgi-bin /usr/local/www.host1.com/cgi-bin
Alias /images/ "/usr/local/www.host1.com/images/"
<Directory "/usr/local/www.host1.com/">
Options FollowSymLinks MultiViews
AllowOverride All
</Directory>
DirectoryIndex index.tt2
<Files *.tt2>
SetHandler perl-script
PerlHandler Apache::Template
</Files>
</VirtualHost>
<VirtualHost 123.456.789.000>
ServerAdmin Harry
DocumentRoot /usr/local/www.host2.com
ServerName www.host2.com
TT2PreProcess mmt-header menu
TT2PostProcess mmt-footer
TT2IncludePath /usr/local/www.host2.com/lib
TT2Error mmt-error
ErrorLog logs/www.host2.com-error_log
CustomLog logs/www.host2.com-access_log combined
ScriptAlias /cgi-bin /usr/local/www.host2.com/cgi-bin
Alias /images/ "/usr/local/www.host2.com/images/"
<Directory "/usr/local/www.host2.com/">
Options FollowSymLinks MultiViews
AllowOverride All
</Directory>
DirectoryIndex index.tt2
<Files *.tt2>
SetHandler perl-script
PerlHandler Apache::Template
</Files>
</VirtualHost>
At unpredictable and random times the one going to
http://www.host1.com
Will result in the HOST2 Preloads being executed (header, menu footer).
Another random event is a unknown error will be thrown say in host1
and the host2 error module will be executed.
Have I got set-up wrong??
Any help would be appreciated since will have to abandon the Toolkit
if we can't get around this.
--
Peter Marshall -- CTO Openphase
"The The secret to creativity is knowing how to hide your sources." A.Einstein
"The magic is in the doing" - P. Marshall