Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
1626:7caa66b819df | 1627:bf5521329069 |
---|---|
277 u_char c; | 277 u_char c; |
278 ngx_str_t dir; | 278 ngx_str_t dir; |
279 ngx_open_file_info_t of; | 279 ngx_open_file_info_t of; |
280 | 280 |
281 c = *last; | 281 c = *last; |
282 if (c != '/') { | 282 if (c != '/' || path == last) { |
283 /* "alias" without trailing slash */ | 283 /* "alias" without trailing slash */ |
284 c = *(++last); | 284 c = *(++last); |
285 } | 285 } |
286 *last = '\0'; | 286 *last = '\0'; |
287 | 287 |