List Info

Thread: DirectoryIndex does not work with file handler?




DirectoryIndex does not work with file handler?
user name
2006-09-30 18:10:52
I'm running the Windows version of Cherokee but I guess it
shouldn't
matter. I'd like to disable directory listing on my site so
I changed the
common handler to file handler in the default config file.
Then I find
that the DirectoryIndex does not work any more. Instead, I
get 404.
I understand that I can enable directory listing and put an
index file
there. This certainly work for the home directory because I
will put
an index.htm there anyway. But for my data directories, I'll
have to
manually set them to use file handler. I'm hoping the
default is
inherited from the root directory, which could be set to use
file
handler with DirectoryIndex set to my default page. But it
looks like
DirectoryIndex are file handler are mutually exclusive?

DirectoryIndex index.htm

Directory / {
   Handler file
}


-- 
Best regards,
Jack

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
DirectoryIndex does not work with file handler?
user name
2006-10-03 21:24:45
Jack L wrote:

> I'm running the Windows version of Cherokee but I guess
it shouldn't
> matter. I'd like to disable directory listing on my
site so I
> changed the common handler to file handler in the
default config
> file. Then I find that the DirectoryIndex does not work
any
> more. Instead, I get 404.  I understand that I can
enable directory
> listing and put an index file there. This certainly
work for the
> home directory because I will put an index.htm there
anyway. But for
> my data directories, I'll have to manually set them to
use file
> handler. I'm hoping the default is inherited from the
root
> directory, which could be set to use file handler with
> DirectoryIndex set to my default page. But it looks
like
> DirectoryIndex are file handler are mutually exclusive?
>
> DirectoryIndex index.htm
>
> Directory / {
>    Handler file
> }

  Yeah, you are right.. DirectoryIndex is only used by the
common
  handler.

  For the case in which you want to use DirectoryIndex and
forbid the
  directory listing, I suppose that we'd need to add a new
parameter
  to common.

  I'll think a little bit about it. I don't fancy that idea
much..

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
DirectoryIndex does not work with file handler?
user name
2006-10-03 21:24:45
Jack L wrote:

> I'm running the Windows version of Cherokee but I guess
it shouldn't
> matter. I'd like to disable directory listing on my
site so I
> changed the common handler to file handler in the
default config
> file. Then I find that the DirectoryIndex does not work
any
> more. Instead, I get 404.  I understand that I can
enable directory
> listing and put an index file there. This certainly
work for the
> home directory because I will put an index.htm there
anyway. But for
> my data directories, I'll have to manually set them to
use file
> handler. I'm hoping the default is inherited from the
root
> directory, which could be set to use file handler with
> DirectoryIndex set to my default page. But it looks
like
> DirectoryIndex are file handler are mutually exclusive?
>
> DirectoryIndex index.htm
>
> Directory / {
>    Handler file
> }

  Yeah, you are right.. DirectoryIndex is only used by the
common
  handler.

  For the case in which you want to use DirectoryIndex and
forbid the
  directory listing, I suppose that we'd need to add a new
parameter
  to common.

  I'll think a little bit about it. I don't fancy that idea
much..

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )