diff src/http/ngx_http_core_module.c @ 2453:1e53534e6800

try_files should work with files only
author Igor Sysoev <igor@sysoev.ru>
date Mon, 19 Jan 2009 11:24:25 +0000
parents 26d9d4a41e91
children 43dcf8cc2cb1
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1172,6 +1172,10 @@ ngx_http_core_try_files_phase(ngx_http_r
             continue;
         }
 
+        if (!of.is_file) {
+            continue;
+        }
+
         path.len -= root;
         path.data += root;