Mercurial > hg > nginx-ranges
comparison src/http/modules/ngx_http_static_module.c @ 152:396dbbc06dd7 NGINX_0_3_23
nginx 0.3.23
*) 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 <http://sysoev.ru> |
---|---|
date | Tue, 24 Jan 2006 00:00:00 +0300 |
parents | 36af50a5582d |
children | af37b7cb6698 |
comparison
equal
deleted
inserted
replaced
151:843df9f3304d | 152:396dbbc06dd7 |
---|---|
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) { |