Quote:
Originally Posted by bathory
Hi,
This isn't working with a php blank page (that actually returns a 200 error code), but for the rest of errors (like 4xx, 5xx) you can use ErrorDocument with ProxyErrorOverride like this:
Code:
ErrorDocument 500 http://proxy/error.html
ProxyErrorOverride On
#Usual reverse proxy directives
ProxyRequests Off
ProxyPass ...
...
HTH
|
Yes that's exactly what I'm looking for, thank-you
Some pages seem to return 500 errors and others don't, I think it depends on whether the error occurs before the output starts, we use mustache templates so all our processing happens before the first output so most pages return 500 errors (Unless it's an error with mustache).
-Sam