Apache::Sandwich and DirectoryIndex

2001-01-10 Thread Clint Gilders

Hi
I have installed Apache::Sandwich on FreeBSD 3.4/Apache 1.3.12/mod_perl
1.24 and have noticed in working with it that if I call a URL like:
http://www.domain.com/test/index.html , it works fine and puts the
header and footer on the file. But, if I call:
http://www.domain.com/test/ , I get:
--
Not Found

The requested URL /test/ was not found on this server.
--
My perl.conf file contains:

Location /test
SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/body.html"
PerlSetVar FOOTER "/bottom.html"
/LOCATION

Another curious thing is that the 404 error is not being logged in my
error log.

Is there a way to allow directory indexes with Apache::Sandwich?

Thanks
-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]



Re: Apache::Sandwich and DirectoryIndex

2001-01-10 Thread Vivek Khera

 "CG" == Clint Gilders [EMAIL PROTECTED] writes:

CG Location /test
CG SetHandler perl-script
CG PerlHandler Apache::Sandwich
CG PerlSetVar HEADER "/body.html"
CG PerlSetVar FOOTER "/bottom.html"
CG /LOCATION

You should Sandwich based on a Files rather than Location, or else
you're gonna end up trying to sandwich images and possibly your
header/footer recursively.  I'd also recommend *not* naming your
headers/footers with the same extension as your files being
sandwiched.

I think what your immediate problem comes from is that you're telling
Apache to use a different handler on everything inside /test and that
means that the default handler that converts directory accesses to the
"index.html" file doesn't get run.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/