mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
Fixed language in a comment preceding ngx_http_index_handler().
This commit is contained in:
parent
64fe190fa0
commit
d1c285e297
@ -85,12 +85,12 @@ ngx_module_t ngx_http_index_module = {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to open/test the first index file before the test of directory
|
* Try to open/test the first index file before the test of directory
|
||||||
* existence because valid requests should be much more than invalid ones.
|
* existence because valid requests should prevail over invalid ones.
|
||||||
* If the file open()/stat() would fail, then the directory stat() should
|
* If open()/stat() of a file will fail then stat() of a directory
|
||||||
* be more quickly because some data is already cached in the kernel.
|
* should be faster because kernel may have already cached some data.
|
||||||
* Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once.
|
* Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once.
|
||||||
* Unix has ENOTDIR error, however, it's less helpful than Win32's one:
|
* Unix has ENOTDIR error; however, it's less helpful than Win32's one:
|
||||||
* it only indicates that path contains an usual file in place of directory.
|
* it only indicates that path points to a regular file, not a directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static ngx_int_t
|
static ngx_int_t
|
||||||
|
Loading…
Reference in New Issue
Block a user