aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-07 09:26:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-07-07 09:26:13 +0000
commitedf1c8c1b8a83a6592714516499a18adc830eeae (patch)
tree01983bdab8428b3647f52d14fa098140070a7389 /src/http/modules/ngx_http_static_module.c
parent4f677fd20377230cf959cddb39ceb4d566ce4866 (diff)
downloadnginx-edf1c8c1b8a83a6592714516499a18adc830eeae.tar.gz
nginx-edf1c8c1b8a83a6592714516499a18adc830eeae.zip
always test root existence for access_log with variables
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, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index f5d697101..ce2f0fc65 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -140,6 +140,8 @@ ngx_http_static_handler(ngx_http_request_t *r)
return rc;
}
+ r->root_tested = 1;
+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);
if (of.is_dir) {