aboutsummaryrefslogtreecommitdiff
path: root/patches/lighttpd_mod_rewrite.patch
blob: 4a2d31c901cb6e204874ddcd7aed6cbb57840dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/mod_rewrite.c   2011-07-04 01:02:38.000000000 +0200
+++ mod_rewrite.c       2011-07-04 01:03:41.000000000 +0200
@@ -461,7 +461,7 @@
        /* skip if physical.path is a regular file */
        sce = NULL;
        if (HANDLER_ERROR != stat_cache_get_entry(srv, con, con->physical.path, &sce)) {
-               if (S_ISREG(sce->st.st_mode)) return HANDLER_GO_ON;
+               if (S_ISREG(sce->st.st_mode) || S_ISDIR(sce->st.st_mode)) return HANDLER_GO_ON;
        }

        switch(r = process_rewrite_rules(srv, con, p, p->conf.rewrite_NF)) {