changeset 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 95f078e7d743
children 9fddd7e1a7a2
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;