From 34303468409089ef2b5bd9739b9c049c393932e4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 24 Jan 2006 16:08:27 +0000 Subject: 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. --- src/http/modules/ngx_http_static_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_static_module.c') diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c index 42cc676af..0dbec5093 100644 --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -186,7 +186,7 @@ ngx_http_static_handler(ngx_http_request_t *r) clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); - if (!clcf->alias) { + if (!clcf->alias && clcf->root_lengths == NULL) { location = path.data + clcf->root.len; } else { -- cgit