Hi,
I have setup a reverse proxy server which will route the request to
Server B. Proxy server is working well with Server B.
I would like to catch HTTP status error like 404/500 from server B. If my proxy gets error404/500 from Server B then it will redirect the page to other site, using PHP. For this reason, I set ErrorDocument 404/500 on httpd.conf file in reverse proxy
server to catch error from Server B. But ErrorDocument is not
working at all. it is working only if I request local file (in proxy server).
I would be glad if you kindly advise me how do I catch HTTP
status error code from Server B and redirect to custom error
page with requested url, using PHP.
Thanks
I have setup a reverse proxy server which will route the request to
Server B. Proxy server is working well with Server B.
I would like to catch HTTP status error like 404/500 from server B. If my proxy gets error404/500 from Server B then it will redirect the page to other site, using PHP. For this reason, I set ErrorDocument 404/500 on httpd.conf file in reverse proxy
server to catch error from Server B. But ErrorDocument is not
working at all. it is working only if I request local file (in proxy server).
I would be glad if you kindly advise me how do I catch HTTP
status error code from Server B and redirect to custom error
page with requested url, using PHP.
Thanks
Comment