Directory permissions behavior changed?

Igor Sysoev is at rambler-co.ru
Fri Aug 8 22:41:17 MSD 2008


On Fri, Aug 08, 2008 at 02:53:56AM -0700, mike wrote:

> why not try the entire list that is defined before the dir test? that
> makes more sense to me.
> 
> seems like it should be
> 
> foreach(index files defined) {
>    if (found) { return success / exit) }
> }
> 
> if(dirlist enabled) {
>    return dirlist / exit
> }
> 
> return 403 access denied;
> 
> 
> This patch appears to have fixed that behavior - it seems to cycle
> properly now, from what i can tell! it tried each one in succession
> until it found it. PLEASE commit this patch on the next version! :)
> 
> here's my config:
> 
> "index index.5 index.4 index.3 index.2 index.1 index.php index.html index.bar;"
> 
> the actual file is "index.html" - works like a charm

> and when the file does not exist it properly issues 403 forbidden now
> (not sure why it was throwing a 500 server error before!)

500 error is nginx bug, it should return 403 in this case.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list