diff src/http/modules/ngx_http_index_module.c @ 1627:bf5521329069

fix autoindex for "alias /"
author Igor Sysoev <igor@sysoev.ru>
date Thu, 08 Nov 2007 15:21:54 +0000
parents 55c8aede41f5
children c42431762903
line wrap: on
line diff
--- 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
     ngx_open_file_info_t  of;
 
     c = *last;
-    if (c != '/') {
+    if (c != '/' || path == last) {
         /* "alias" without trailing slash */
         c = *(++last);
     }