Project

General

Profile

[Solved] Improved server.error-handler patch

Added by D4rk4 over 14 years ago

Hi all.
We write improved version of "server.error-handler-404", now it handled all HTTP statuses above 4xx.

New configuration look like:

server.error-handler = (
"403" => "/go.html",
"404" => "/go.html",
"410" => "/go.html"
)

Here is patch for lighttpd 1.5 r2533+.


Replies (3)

RE: Improved server.error-handler patch - Added by stbuehler over 14 years ago

I don't recommend using such a patch, and i will certainly not push it upstream. I think there are enough reasons in the bug tracker.

RE: [Solved] Improved server.error-handler patch - Added by gstrauss about 7 years ago

lighttpd 1.4.40 implements server.error-handler and lighttpd 1.4.46 will add server.error-intercept
See Docs_ConfigurationOptions

    (1-3/3)