Taher Shihadeh | 1 Apr 2008 20:20

Re: Disabling Directory indexing is on in cherokee

Hi Shane!

On Tuesday 01 April 2008 19:29:07, Shane Volpe wrote:
> It has been a very good conversation but back to my original question:
>  I want to disable the automatic directory (file) indexing (listing ?)
> so the contents of a directory on my system will not get served up on
> a web page.  What would be the 0.6 Cherokee syntax to do this in the
> config file?

I've reviewed what I sent you in the last message and I can't believe I actually forgot to answer the original
question X-)

I think you need the handler named 'file'.
For example this prevents the directory indexing of the '/images' directory on my default Virtual Server.

vserver!default!directory!/images!priority = 100099
vserver!default!directory!/images!only_secure = 0
vserver!default!directory!/images!handler = file
vserver!default!directory!/images!handler!iocache = 1

That is what cherokee-admin spits directly. I've just made the test and the Handler I selected for this (in
Virtual Servers-> default ->Behaviour tab) is called 'Static content'

Regards,
	Taher
--

-- 
taher <at> unixwars.com
http://unixwars.com

Gmane