使用Apache作为代理服务器+;雄猫

使用Apache作为代理服务器+;雄猫,apache,tomcat,proxy,errordocument,Apache,Tomcat,Proxy,Errordocument,我试图在tomcat关闭时显示自定义页面,为了做到这一点,我正在使用apache服务器。我正在尝试将所有请求重定向到tomcat(localhost:8080),除了以“/error”开头的请求之外,我该怎么做?我在httpd.conf文件中尝试过类似的方法: ErrorDocument 503 /error/503.html <IfModule proxy_http_module> ProxyPass /error http://localhost/ retry=0 Proxy

我试图在tomcat关闭时显示自定义页面,为了做到这一点,我正在使用apache服务器。我正在尝试将所有请求重定向到tomcat(localhost:8080),除了以“/error”开头的请求之外,我该怎么做?我在httpd.conf文件中尝试过类似的方法:

ErrorDocument 503 /error/503.html

<IfModule proxy_http_module>

ProxyPass /error http://localhost/ retry=0
ProxyPassReverse /error http://localhost/

ProxyPass / http://localhost:8080/ retry=0
ProxyPassReverse / http://localhost:8080/

</IfModule>
ErrorDocument 503/error/503.html
代理传递/错误http://localhost/ 重试=0
ProxyPassReverse/错误http://localhost/
ProxyPass/http://localhost:8080/ 重试=0
ProxyPassReverse/http://localhost:8080/

但是没有成功。

在提出问题之前,您是否看过ProxyPass的httpd文档

你想要

ProxyPass /error !
排除以
/error