Mercurial > hg > nginx
comparison src/http/modules/ngx_http_index_handler.c @ 457:ded1284520cc release-0.1.3
nginx-0.1.3-RELEASE import
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 25 Oct 2004 15:29:23 +0000 |
parents | 42d11f017717 |
children | a88a3e4e158f |
comparison
equal
deleted
inserted
replaced
456:911c05435a02 | 457:ded1284520cc |
---|---|
98 * Besides Win32 has ERROR_PATH_NOT_FOUND (NGX_ENOTDIR). | 98 * Besides Win32 has ERROR_PATH_NOT_FOUND (NGX_ENOTDIR). |
99 * Unix has ENOTDIR error, although it less helpfull - it shows only | 99 * Unix has ENOTDIR error, although it less helpfull - it shows only |
100 * that path contains the usual file in place of the directory. | 100 * that path contains the usual file in place of the directory. |
101 */ | 101 */ |
102 | 102 |
103 ngx_int_t ngx_http_index_handler(ngx_http_request_t *r) | 103 static ngx_int_t ngx_http_index_handler(ngx_http_request_t *r) |
104 { | 104 { |
105 u_char *name; | 105 u_char *name; |
106 ngx_fd_t fd; | 106 ngx_fd_t fd; |
107 ngx_int_t rc; | 107 ngx_int_t rc; |
108 ngx_str_t *index; | 108 ngx_str_t *index; |