Mercurial > hg > nginx
diff src/http/modules/ngx_http_index_module.c @ 595:ebc68d8ca496 release-0.3.19
nginx-0.3.19-RELEASE import
*) Feature: the "path" and "alias" directives support the variables.
*) Change: now the "valid_referers" directive again checks the URI part.
*) Bugfix: in SSI handling.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 28 Dec 2005 14:23:52 +0000 |
parents | 4d9ea73a627a |
children | e60fe4cf1d4e |
line wrap: on
line diff
--- 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_ 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);