try_files should work with files only
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7d53ca1..d44933c 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1172,6 +1172,10 @@
             continue;
         }
 
+        if (!of.is_file) {
+            continue;
+        }
+
         path.len -= root;
         path.data += root;