From 704bafb5c218e01465c765f95edc27bf0ad1f4aa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 23 Oct 2007 14:10:38 +0000 Subject: [PATCH] fix mime type for absolute index --- src/http/modules/ngx_http_index_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index 6f81a49cf..bad1de3b0 100644 --- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -503,6 +503,10 @@ ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ilcf->max_index_len = index->name.len; } + if (index->name.data[0] == '/') { + continue; + } + /* include the terminating '\0' to the length to use ngx_copy() */ index->name.len++;