comparison src/http/modules/ngx_http_index_module.c @ 144:e1c6ac408b68 NGINX_0_3_19

nginx 0.3.19 *) 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 <http://sysoev.ru>
date Wed, 28 Dec 2005 00:00:00 +0300
parents df17fbafec8f
children 54aabf2b0bc6
comparison
equal deleted inserted replaced
143:c2fa0caa07f2 144:e1c6ac408b68
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;