aboutsummaryrefslogtreecommitdiff
path: root/patches/lighttpd_mod_rewrite.patch
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2013-04-15 15:04:30 +0200
committertoni <matzeton@googlemail.com>2013-04-15 15:04:30 +0200
commite33b5930923a439f4c73b6dd64253578c4131420 (patch)
treef3d9d1c359603174bb75fb2394ddb33a315dcd88 /patches/lighttpd_mod_rewrite.patch
initial commit
Diffstat (limited to 'patches/lighttpd_mod_rewrite.patch')
-rw-r--r--patches/lighttpd_mod_rewrite.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/lighttpd_mod_rewrite.patch b/patches/lighttpd_mod_rewrite.patch
new file mode 100644
index 0000000..4a2d31c
--- /dev/null
+++ b/patches/lighttpd_mod_rewrite.patch
@@ -0,0 +1,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)) {