Re: Apache::Sandwich and DirectoryIndex
> "CG" == Clint Gilders <[EMAIL PROTECTED]> writes: CG> CG> SetHandler perl-script CG> PerlHandler Apache::Sandwich CG> PerlSetVar HEADER "/body.html" CG> PerlSetVar FOOTER "/bottom.html" CG> 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/
Re: Apache::Sandwich and DirectoryIndex
Clint, That is because the Sandwich module only works against html extention files, or shtml if you do the Files directive. You need to modify the module to assume the Diretory Index of your choice. Thanks At 03:19 PM 1/10/01 -0500, Clint Gilders wrote: >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: > > > SetHandler perl-script > PerlHandler Apache::Sandwich > PerlSetVar HEADER "/body.html" > PerlSetVar FOOTER "/bottom.html" > > >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] > - Will Wiley Sr. Web Technologist Wind River Systems, Platform Engineering Tel : +1(510)749-2476 Fax : +1(510)749-2010 mailto:[EMAIL PROTECTED] http://www.windriver.com
Apache::Sandwich and DirectoryIndex
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: SetHandler perl-script PerlHandler Apache::Sandwich PerlSetVar HEADER "/body.html" PerlSetVar FOOTER "/bottom.html" 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]