aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_index_module.c
diff options
context:
space:
mode:
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 e6e45a17e..4ef291009 100644
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -291,7 +291,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
uri.len = r->uri.len + ctx->index.len - 1;
if (!clcf->alias) {
- uri.data = ctx->path.data + clcf->root.len;
+ uri.data = ctx->path.data + r->root_length;
} else {
uri.data = ngx_palloc(r->pool, uri.len);