aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-01-24 16:08:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-01-24 16:08:27 +0000
commit34303468409089ef2b5bd9739b9c049c393932e4 (patch)
tree1e47f167cd74beaeca64d863662ed1e82d2cf822 /src/http/modules/ngx_http_static_module.c
parentd94e18746b9e79fbb52cf3012d1692ad893df22e (diff)
downloadnginx-release-0.3.23.tar.gz
nginx-release-0.3.23.zip
nginx-0.3.23-RELEASE importrelease-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.
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c2
1 files changed, 1 insertions, 1 deletions
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 {