Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-08 18:21:54 +0300
committerIgor Sysoev <igor@sysoev.ru>2007-11-08 18:21:54 +0300
commit4c89c09ad8e574509446efab0347b124372bc53a (patch)
tree217150d881dba40e490adf1df8a65660f6888779 /src/http/modules/ngx_http_index_module.c
parentd47063bd90f5dce1b6717202a9f0315cc421025f (diff)
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.c2
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);
}