I have followed the example in "Writing Apache Modules in Perl and C".
The module Apache::ESSI is working fine for a virtual site (development
site), but it does not work for the main (non-virutal) site. Here a bit
of my httpd.conf:
-------------------------------------------------------------
##
## httpd.conf -- Apache HTTP server configuration file
##
[...snip...]
ResourceConfig conf/perl.conf
[...snip...]
ServerAdmin [EMAIL PROTECTED]
ServerName miltonstreet.tzo.com
DocumentRoot "/data01/www/miltonstreet"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/data01/www/miltonstreet">
Options FollowSymLinks MultiViews Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[...snip...]
<VirtualHost 192.168.0.5:80>
DocumentRoot /data01/www/dev-collect-lure
<Directory "/data01/www/scripts/cgi-bin-dev">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Location /images>
SetHandler perl-script
PerlHandler Apache::Magick
</Location>
</VirtualHost>
-------------------------------------------------------------
Apache::ESSI works fine on the 192.168.0.5 web site, but does not work
on the miltonstreet web site. Here is the perl.conf:
-------------------------------------------------------------
# perl.conf
PerlRequire /data01/www/scripts/startup.pl
PerlFreshRestart On
<Location /hello/world>
SetHandler perl-script
PerlHandler Apache::Hello
</Location>
<Files ~ "\.ehtml$">
SetHandler perl-script
Perlhandler Apache::ESSI
PerlSetVar ESSIDefs conf/essi.defs
</Files>
AddType text/html .ehtml
<Location /image>
SetHandler perl-script
PerlHandler Apache::Magick
</Location>
-------------------------------------------------------------
Any thoughts on what I am doing wrong?
Sam
P.S. the miltonstreet site is: http://miltonstreet.tzo.com/index.ehtml