Server errorfile-prefixDetails » History » Revision 6
Revision 5 (nitrox, 2008-10-11 11:31) → Revision 6/7 (Sfiera, 2008-11-06 04:00)
h1. h2. server.errorfile-prefix option h2. server.errorfile-prefix identifies the path prefix to a list of static error files You you can customize what page to send back based on a status code. This provides you with an alternative way to customize 404 pages. You may also customize other status-codes with their own custom page (500 pages, etc). Only static files are allowed to be sent back. Format: <errorfile-prefix><status-code>.html h3. Example <pre> {{{ server.errorfile-prefix = "/srv/www/htdocs/errors/status-" </pre> }}} p((. Now create static pages for your error handling in directory /srv/www/htdocs/errors. Based on the above entry you must name your files status-(status-code).html <pre> {{{ /srv/www/htdocs/errors/status-404.html /srv/www/htdocs/errors/status-500.html /srv/www/htdocs/errors/status-501.html </pre> Create }}} create custom pages for any error status code. h2. See Also * [[server.error-handler-404Details|server.error-handler-404]] [[server.error-handler-404Details|server.error-handler-404 option]] * "Spice Up Error Page (Blog)":http://blog.lighttpd.net/articles/2005/08/28/spice-up-for-error-page Spice Up For Error Page Blog Entry