Hi,
Thank you very much for your response.
I've changed my configs, so that the sandwich will work only on .html file,
and set them not to be SSI parse by default.
Still, the header file, which has .shtml extension is not parsed.
My sandwich version : 2.2
the httpd.conf details :
....
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
# AddHandler server-parsed .html
.....
# shayman - enable sandwich module
# for all files which ends with .html
<Files ~ "\.html$">
SetHandler perl-script
PerlHandler Apache::Sandwich
# use these documents as header and footer
PerlSetVar HEADER /.includes/header.shtml
PerlSetVar FOOTER /.includes/footer.shtml
# parse ssi after sandwiching the page
PerlSetVar SandwichHandler server-parsed
# Options Includes # shayman - it doesn't seem to work
</Files>
....
The header.shtml file is located in a directory which is allowed for
including (Option Includes).
What else should I check ?
Thanks in advance.
Shay.
Vivek Khera wrote:
> >>>>> "SM" == Shay Mandel <[EMAIL PROTECTED]> writes:
>
> SM> Hi,
> SM> I am trying to use your Sandwich module, which is really great and
> SM> helpful. So first of all I want to thank you for the great job you've
> SM> done.
>
> Try making your sandwiched documents NOT be *.[s]html. You're forcing
> all your documents to be sandwiched, including your header files.
>
> It seems you expect your .shtml and .html files to go through the
> sandwich handler *and* be left along when pulled through as the actual
> header/footer. This cannot work.
--
Shay Mandel
IT Group - WebMaster
Galileo Technology
Moshav Manof, D.N. Misgav 20184, ISRAEL.
E-mail: [EMAIL PROTECTED]
Phone : +972-8-9247555 ext. 354
Fax : +972-8-9247554
Phone@home: +972-2-6528550
Cellular : +972-52-339342
WWW Page http://www.galileot.com