Project

General

Profile

Actions

Server errorfile-prefixDetails » History » Revision 3

« Previous | Revision 3/7 (diff) | Next »
nilicule, 2008-03-18 11:50
Fixed typo in config parameter


server.errorfile-prefix option

server.errorfile-prefix

identifies the path prefix to a list of static error files
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
Example
{{{
server.errorfile-prefix = "/srv/www/htdocs/errors/status-"
}}}
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
{{{
/srv/www/htdocs/errors/status-404.html
/srv/www/htdocs/errors/status-500.html
/srv/www/htdocs/errors/status-501.html
}}}
create custom pages for any error status code.
See Also * [wiki:server.error-handler-404Details server.error-handler-404 option] * [http://blog.lighttpd.net/articles/2005/08/28/spice-up-for-error-page Spice Up Error Page (Blog)]

Spice Up For Error Page Blog Entry

Updated by nilicule almost 17 years ago · 3 revisions