comparison src/http/modules/ngx_http_static_module.c @ 603:858700ae46b4 release-0.3.23

nginx-0.3.23-RELEASE import *) Feature: the "optimize_host_names" directive. *) Bugfix: in using of the variables in the "path" and "alias" directives. *) Bugfix: the ngx_http_perl_module was incorrectly built on Linux and Solaris.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 24 Jan 2006 16:08:27 +0000
parents 9262f520ce21
children 715d24327080
comparison
equal deleted inserted replaced
602:0d42d54505f2 603:858700ae46b4
184 return NGX_HTTP_INTERNAL_SERVER_ERROR; 184 return NGX_HTTP_INTERNAL_SERVER_ERROR;
185 } 185 }
186 186
187 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 187 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
188 188
189 if (!clcf->alias) { 189 if (!clcf->alias && clcf->root_lengths == NULL) {
190 location = path.data + clcf->root.len; 190 location = path.data + clcf->root.len;
191 191
192 } else { 192 } else {
193 location = ngx_palloc(r->pool, r->uri.len + 1); 193 location = ngx_palloc(r->pool, r->uri.len + 1);
194 if (location == NULL) { 194 if (location == NULL) {