httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Watts <>
Subject ErrorDocument and ProxyErrorOverride
Date Mon, 18 Jan 2010 17:50:25 GMT

[I originally sent this to users@ but here might be a better place to

I have a two Apache 2.2.13 servers. One is a straight proxy (doing SSL
offload) through to the other.

The proxy has the following settings relating to my issue:

        ErrorDocument 404 /errors/error404.html
        ProxyErrorOverride on
        ProxyPass        /
        ProxyPassReverse /

This means 404's caused by content not existing on the back-end server
are captured by the proxy, which in turn pulls the page from the
back-end server. (The real configuration is more complicated, since in
reality I'm proxying another location to some IIS boxes, and they don't
have the customised error page).

I'm under the impression from the ErrorDocument documentation
( that my
custom 404 page should be being returned, while retaining the 404 status
code since I'm not technically redirecting it to another server from the
client PoV.
Indeed, testing this locally (without a proxy) returns me a customised
page and a 404 status code.

Does this still hold when your ErrorDocument is actually behind a proxy?
Testing here suggests not - I'm getting the custom page but with a 200.
Naturally, this means that logs from the proxy never include 404's,
which isn't the case. (I can't really use logs from the back-end server,
since they don't reflect the true source IP).


Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
QinetiQ - Delivering customer-focused solutions
GPG Key:

View raw message