server.errorfile-prefix option


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


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


Create custom pages for any error status code.

See Also

Updated by Sfiera about 7 years ago · 7 revisions