1 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.
3 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.
5 This is with lighttpd 1.4.19 on Debian.
7 > /cgi-bin/ikiwiki.cgi?do=goto also provides redirection in the same way,
8 > if that's any help? You might need to set the lighttpd 404 handler to
9 > that, then compose REDIRECT_URL from other variables if necessary.
11 > I originally wrote the plugin for Apache; [[weakish]] contributed the
12 > lighttpd docs and might know more about how to make it work there.