Hi Tom,

You probably want something like this:

   PerlModule Apache::Filter
   PerlModule Apache::Footer
   PerlModule Apache::SSI
   PerlModule Apache::TomSSI
   
   <Files ~ "\.html?$">
    SetHandler perl-script
    PerlHandler Apache::Footer
   </Files>
   
   <Files ~ "\.shtml?$">
    SetHandler perl-script
    PerlHandler Apache::SSI Apache::Footer
    Options +Includes
   </Files>

The mod_include module, and its 'server-parsed' handler, won't be
involved at all.  But Apache::SSI does respect the 'Includes' directive
to a certain extent.

I assume TomSSI contains some routines that you'll use from SSI
directives?  If so, it doesn't need to be a handler, nor does it need to
subclass Apache::SSI.


[EMAIL PROTECTED] (Tom Kralidis) wrote:
>Hi Ken,
>
>Thanks for the info.  I tried on files of type .phtml for testing and it 
>worked.
>
>   <Files *.phtml>
>    SetHandler perl-script
>    PerlSetVar Filter On
>    PerlHandler TomSSI Apache::Footer
>   </Files>
>
>Now, how to integrate this into httpd.conf?  I currently have this:
>
>  <Directory /www/htdocs/>
>   AddHandler server-parsed .shtml
>   AddType text/html .shtml
>   Options +Includes
>  </Directory>
>
>   PerlModule Apache::SSI
>   PerlModule Apache::Filter
>   PerlModule Apache::TomSSI
>
>   <Files ~ "\.html?$">
>    SetHandler perl-script
>    PerlHandler Apache::Footer
>   </Files>
>
>How to modify so that .shtml takes it too?  I tried <Files ~ "\.s?html?$" 
>and no SSI came out, I tried commenting out the AddHandler server-parsed 
>lines and no luck.
>
>I *could* rename all my .shtml files to something unique as per my .phtml 
>testing, but that may be alot of work and changes as far as supporting 
>classic SSI, etc.
>
>Any way to do this?
>
>Thanks
>
>...Tom


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to