aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/404_plugin_and_lighttpd.mdwn
diff options
context:
space:
mode:
authorhttp://cdombroski.myopenid.com/ <http://cdombroski.myopenid.com/@web>2010-03-02 15:47:23 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-03-02 15:47:23 +0000
commitd469a410eaad03553cb5ef41a69c772c6d50bf76 (patch)
tree5802de21f33c59e61d0d6469cd311b9fc1939806 /doc/bugs/404_plugin_and_lighttpd.mdwn
parentb3df992552b2a608fd46740252b8fd76bf3c09bb (diff)
downloadikiwiki-d469a410eaad03553cb5ef41a69c772c6d50bf76.tar
ikiwiki-d469a410eaad03553cb5ef41a69c772c6d50bf76.tar.gz
Bug: 404 plugin & lighttpd
Diffstat (limited to 'doc/bugs/404_plugin_and_lighttpd.mdwn')
-rw-r--r--doc/bugs/404_plugin_and_lighttpd.mdwn5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/bugs/404_plugin_and_lighttpd.mdwn b/doc/bugs/404_plugin_and_lighttpd.mdwn
new file mode 100644
index 000000000..e60fd209a
--- /dev/null
+++ b/doc/bugs/404_plugin_and_lighttpd.mdwn
@@ -0,0 +1,5 @@
+Lighttpd apparently sets REDIRECT_STATUS=200 for the server.error-handler-404 page. This breaks the 404 plugin which checks this variable for 404 before processing the URI. It also doesn't seem to set REDIRECT_URL.
+
+I was able to fix my server to check the REQUEST_URI for ikiwiki.cgi and to continue processing if it was not found, passing $ENV{SEVER_NAME} . $ENV{REQUEST_URI} as the first parameter to cgi_page_from_404. However, my perl is terrible and I just made it work rather than figuring out exactly what to do to get it to work on both lighttpd and apache.
+
+This is with lighttpd 1.4.19 on Debian.