I'm on TT 2.06d and Apache::Template 0.06. I'm getting weirdness with
two Apache::Template Virtual hosts colliding. Running with MaxCLients
of 1 as usual in these situations, I make a request to the first host
and everthing looks fine (assorted warns in Apache/Service.pm and
Template/Provider.pm). My hand crafted handler works fine. It seems
like it's never overriding the include.


Hostname: <br>$VAR1 = 'dave.tonyashton.com';
Docroot : <br>$VAR1 = '/home/daveh/public_html/www.tonyashton.com';
Docroot: /home/daveh/public_html/www.tonyashton.com at 
/usr/lib/perl5/site_perl/5.6.0/Template/Provider.pm line 420.
Include: <br>$VAR1 = [
<br>  '/tmp',
<br>  '/home/daveh/public_html/www.tonyashton.com/templates'
<br>];


If I hit another host, the IncludePath is fsked:

Hostname: <br>$VAR1 = 'dave.hodgkinson.org';
Docroot : <br>$VAR1 = '/home/daveh/public_html/www.newhodgkinson.org/';
Docroot: /home/daveh/public_html/www.newhodgkinson.org/ at 
/usr/lib/perl5/site_perl/5.6.0/Template/Provider.pm line 420.Include: <br>$VAR1 = [
<br>  '/tmp',
<br>  '/home/daveh/public_html/www.tonyashton.com/templates'
<br>];


If I restart the server and go in reverse:

Hostname: $VAR1 = 'dave.hodgkinson.org';
Docroot : $VAR1 = '/home/daveh/public_html/www.newhodgkinson.org/';
Docroot: /home/daveh/public_html/www.newhodgkinson.org/ at 
/usr/lib/perl5/site_perl/5.6.0/Template/Provider.pm line 420.Include: $VAR1 = [
          '/tmp',
          '/home/daveh/public_html/www.newhodgkinson.org/templates'
        ];

Hostname: $VAR1 = 'dave.tonyashton.com';
Docroot : $VAR1 = '/home/daveh/public_html/www.tonyashton.com';
Docroot: /home/daveh/public_html/www.tonyashton.com at 
/usr/lib/perl5/site_perl/5.6.0/Template/Provider.pm line 420.
Include: $VAR1 = [
          '/tmp',
          '/home/daveh/public_html/www.newhodgkinson.org/templates'
        ];


The TT2Include just sticks.

httpd.conf looks like:


<VirtualHost 192.168.0.3:80>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home/daveh/public_html/www.newhodgkinson.org/
    ServerName dave.hodgkinson.org

TT2Debug            Off
TT2Trim             On
TT2PostChomp        On
TT2EvalPerl         Off
TT2IncludePath      /home/daveh/public_html/www.newhodgkinson.org/templates
TT2PreProcess       config header
TT2PostProcess      footer
TT2Error            error
TT2Params       uri env params

<Files *.html>
    SetHandler      perl-script
    PerlHandler     Apache::Template
</Files>
</VirtualHost>


<VirtualHost 192.168.0.3:80>
ServerName dave.tonyashton.com
DocumentRoot /home/daveh/public_html/www.tonyashton.com

TT2Debug            Off
TT2Trim             On
TT2PostChomp        On
TT2EvalPerl         Off
TT2IncludePath      /home/daveh/public_html/www.tonyashton.com/templates
TT2PreProcess       config header
TT2PostProcess      footer
TT2Error            error
TT2Params       uri env params

<Files *.html>
    SetHandler      perl-script
    PerlHandler     Apache::Template
</Files>

</VirtualHost>



Any clues? Andy? Darren?


Reply via email to