>>>>> "Shay" == Shay Mandel <[EMAIL PROTECTED]> writes:

    Shay> #
    Shay> # To use server-parsed HTML files
    Shay> #
    Shay> AddType text/html .shtml AddHandler server-parsed .shtml
    Shay> AddHandler server-parsed .html

    Shay> <Files ~ "\.s{0,1}html$">
    Shay>  SetHandler perl-script
    Shay>     PerlHandler Apache::Sandwich

    Shay>     # use these documents as header and footer
    Shay>     PerlSetVar HEADER /.includes/header2.shtml PerlSetVar
    Shay>     FOOTER /.includes/footer.shtml

    Shay>     # parse ssi after sandwiching the page
    Shay>     PerlSetVar SandwichHandler server-parsed

    Shay>     # Options Includes # shayman - it doesn't seem to work
    Shay> </Files>

Try using a different file suffix for the files to be handled by
Apache::Sandwich.  Something like this works for me:

<FilesMatch "\.brc$">
   SetHandler perl-script
   PerlHandler Apache::Sandwich
</FilesMatch>

Then for various directories, I have the following:

<Location /Unix>
  PerlSetVar HEADER /includes/brc/unix_header.shtml
  PerlSetVar FOOTER /includes/brc/general_trailer.shtml
</Location>

Note the 'shtml' suffix is handled as:

AddType text/x-server-parsed-html .shtml
<FilesMatch ".*\.shtml$">
   SetHandler perl-script
   PerlSendHeader Off
   Options ExecCGI
   PerlHandler Apache::SSI
</FilesMatch>

Everything in HEADER and FOOTER is parsed as expected.  I'm opting to
use the Apache::SSI module as opposed to the mod_ssi, but it should not
make a difference.

HTHYO.

Peace.

Reply via email to