diff 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
line wrap: on
line diff
--- 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
 
         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 {