diff src/http/modules/ngx_http_static_module.c @ 2087:c8039b26a949

always test root existence for access_log with variables
author Igor Sysoev <igor@sysoev.ru>
date Mon, 07 Jul 2008 09:26:13 +0000
parents 75a8d34459c5
children 25add486e7aa
line wrap: on
line diff
--- 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
         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) {