comparison 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
comparison
equal deleted inserted replaced
594:6248cd598b13 595:ebc68d8ca496
289 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 289 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
290 290
291 uri.len = r->uri.len + ctx->index.len - 1; 291 uri.len = r->uri.len + ctx->index.len - 1;
292 292
293 if (!clcf->alias) { 293 if (!clcf->alias) {
294 uri.data = ctx->path.data + clcf->root.len; 294 uri.data = ctx->path.data + r->root_length;
295 295
296 } else { 296 } else {
297 uri.data = ngx_palloc(r->pool, uri.len); 297 uri.data = ngx_palloc(r->pool, uri.len);
298 if (uri.data == NULL) { 298 if (uri.data == NULL) {
299 return NGX_HTTP_INTERNAL_SERVER_ERROR; 299 return NGX_HTTP_INTERNAL_SERVER_ERROR;