Mercurial > hg > nginx
diff src/http/modules/ngx_http_index_handler.c @ 74:17ab1af8c3dd
nginx-0.0.1-2003-04-11-20:01:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 11 Apr 2003 16:01:14 +0000 |
parents | 59229033ae93 |
children | 674d333f4296 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_handler.c +++ b/src/http/modules/ngx_http_index_handler.c @@ -58,8 +58,9 @@ ngx_module_t ngx_http_index_module = { Try to open first index file before the test of the directory existence because the valid requests should be many more then invalid ones. If open() failed then stat() should be more quickly because some data - is already cached in the kernel. Besides Win32 has ERROR_PATH_NOT_FOUND - and Unix has ENOTDIR error (although it less helpfull). + is already cached in the kernel. + Besides Win32 has ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) and + Unix has ENOTDIR error (although it less helpfull). */ int ngx_http_index_handler(ngx_http_request_t *r) @@ -110,11 +111,7 @@ int ngx_http_index_handler(ngx_http_requ ngx_log_error(NGX_LOG_DEBUG, r->connection->log, err, "DEBUG: " ngx_open_file_n " %s failed", name); -#if (WIN32) - if (err == ERROR_PATH_NOT_FOUND) { -#else if (err == NGX_ENOTDIR) { -#endif r->path_not_found = 1; } else if (err == NGX_EACCES) {