]> git.kaiwu.me - nginx.git/commitdiff
try_files should work with files only
authorIgor Sysoev <igor@sysoev.ru>
Mon, 19 Jan 2009 11:24:25 +0000 (11:24 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 19 Jan 2009 11:24:25 +0000 (11:24 +0000)
src/http/ngx_http_core_module.c

index 7d53ca155f03688d16fb688b087119dc6e6cf209..d44933ca3628f84b2ef6dfb5d01a7d6b67ccb493 100644 (file)
@@ -1172,6 +1172,10 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
             continue;
         }
 
+        if (!of.is_file) {
+            continue;
+        }
+
         path.len -= root;
         path.data += root;