Feature #2200
closedMore server.error handlers please
Description
According to this forum post http://redmine.lighttpd.net/boards/3/topics/2298 I'd like to ask you if it's possible
to build in more error handlers. I've been using Apache for the last 10 years and I guess self-defined error handlers
(to be exactly: self-defined DYNAMICAL error pages php, perf, u name it...) are one of the most important things a good
webserver must be able to serve. I'm already using the 404 handler but I really think this is not enough.
I've built many projects in my lifetime as a web-developer where the customer wanted custom 401 and 403 error pages
which I'm not able to do anymore since I migrated from Apache to Lighty.
Also HTTP 500 dynamical error handlers would be useful. I know at first it doesn't make sense when you think
about calling a php script when the previous script crashed, but as long as the two scripts are totally independent
and won't produce and endless loop it's a very good posibility to show the customer in a nice way that there wen't
something wrong.
Best regards
Updated by stbuehler almost 15 years ago
- Status changed from New to Wontfix
The 404 handler actually handles 404 and 403 errors afaik.
For everything else use server.errorfile-prefix
; we won't provide dynamic error handlers for them, as it is way too ugly.
Updated by gstrauss almost 9 years ago
Updated by gstrauss over 1 year ago
- Status changed from Wontfix to Fixed
- ASK QUESTIONS IN Forums set to No
server.error-handler
was added in lighttpd 1.4.40server.error-intercept
was added in lighttpd 1.4.46
Another option is mod_magnet magnet.attract-response-start-to
(since lighttpd 1.4.56) and a lua script
Also available in: Atom