From 4c89c09ad8e574509446efab0347b124372bc53a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 8 Nov 2007 15:21:54 +0000 Subject: fix autoindex for "alias /" --- src/http/modules/ngx_http_index_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_index_module.c') 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); } -- cgit