diff 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
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 {