这是我的mod_proxyconfiguration:
<IfModule mod_proxy.c> <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /manage/ http://localhost:9000/manage/ ProxyPassReverse /manage/ http://localhost:9000/manage/ </IfModule>
我发现无论何时在9000端口上的其他网站都没有正确响应,我得到了503个错误 – 即使在网站被修复之后,这个错误仍然存在。 换句话说,503响应似乎被caching了。
我怎样才能禁用它? 我不认为我已经启用了caching自己,也许这是默认的。
mod_proxy标志着一个没有响应的后端,当它似乎closures了; 如果没有后端可用,那么它以503响应。
默认情况下,后端将被标记为60秒; 直到这段时间过去了,它不会重试连接(并向任何连接的客户端回复一个错误消息)。
要立即retry=0 ,请向您的ProxyPass指令添加retry=0 :
ProxyPass /manage/ http://localhost:9000/manage/ retry=0