PLEASE NOTE: Native Lighttpd Windows builds are available at en.wlmp-project.net/
The last available Lighttpd for Windows build that I created using Cygwin was Lighttpd for Windows 1.4.17. Updated September 29, 2009.
Now available for download: Binary and Source RPMs for the 1.5 pre-release Lighttpd-1.5.0-r1992. Choose the correct RPMs for your distribution by viewing the README.txt. Note that this is a test release I am providing for you to try as the Lighttpd team moves closer to the actual 1.5.0 release. Please report bugs to: http://trac.lighttpd.net/trac/newticket. (Discontinued Link)
Lighttpd blog announcement is here.
Create a file called error-handler.html in the root directory of the server (the one you refer to as ‘/’) and make an entry in your lighttpd.conf file:
## error-handler for status 404
server.error-handler-404 = “/error-handler.html”
Advanced options:
If you use a particular scrpting language on your site (php, perl, cgi, fast-cgi, etc.) you can name your error-handler with the appropriate file extension:
## error-handler for status 404
#server.error-handler-404 = “/error-handler.html”
#server.error-handler-404 = “/error-handler.php”
#server.error-handler-404 = “/error-handler.pl”
#server.error-handler-404 = “/error-handler.cgi”
#server.error-handler-404 = “/error-handler.fcgi”
Tip: Copy the entire block above into your lighttpd.conf and uncomment the one appropriate line by removing the leading “#” symbol.
After making all your changes, restart lighttpd and test your new error handler by visiting an incorrect URL.
Have any other Lighttpd error handling tips? Leave a comment below.
PLEASE NOTE: Native Lighttpd Windows builds were available at en.wlmp-project.net/
The last available Lighttpd for Windows build that I created using Cygwin was Lighttpd for Windows 1.4.17. Updated September 29, 2009.
Lighttpd/1.4.17 for Win32 is released by the WLMP Project:
http://en.wlmp-project.net/downloads.php
I have built Lighttpd/1.4.17 for Linux: RedHat Enterprise Linux 4 AND CentOS 4; RedHat Enterprise Linux 5 AND CentOS 5; Fedora 7
Download at your own risk!:
http://www.kevindustries.com/media/kw/files/linux/lighttpd/RPMS/
Please note that KWEL4 rpm files in the above directory are for RedHat Enterprise Linux 4 AND CentOS 4.
Please note that KWEL5 rpm files in the EL5 directory are for RedHat Enterprise Linux 5 AND CentOS 5.
Please note that KW.f7 rpm files in the f7 directory are for Fedora 7.
Be sure to download the correct packages for your distribution.
Source RPMS (SRPMS) for the above are here:
http://www.kevindustries.com/media/kw/files/linux/lighttpd/SRPMS/
Get your lighttpd 1.4.17 now, and enjoy.