diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-11-08 15:21:54 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-11-08 15:21:54 +0000 |
commit | 4c89c09ad8e574509446efab0347b124372bc53a (patch) | |
tree | 217150d881dba40e490adf1df8a65660f6888779 /src/http/modules/ngx_http_index_module.c | |
parent | d47063bd90f5dce1b6717202a9f0315cc421025f (diff) | |
download | nginx-4c89c09ad8e574509446efab0347b124372bc53a.tar.gz nginx-4c89c09ad8e574509446efab0347b124372bc53a.zip |
fix autoindex for "alias /"
Diffstat (limited to 'src/http/modules/ngx_http_index_module.c')
-rw-r--r-- | src/http/modules/ngx_http_index_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index eac68e155..7eeaf0a90 100644 --- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -279,7 +279,7 @@ ngx_http_index_test_dir(ngx_http_request_t *r, ngx_http_core_loc_conf_t *clcf, ngx_open_file_info_t of; c = *last; - if (c != '/') { + if (c != '/' || path == last) { /* "alias" without trailing slash */ c = *(++last); } |