Play! 框架:Apache mod_proxy 偶尔会出现代理错误

Play! 框架:Apache mod_proxy 偶尔会出现代理错误

后端是一个 Play! 框架应用程序。

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /entries/topic~showcase

Reason: Error reading from remote server

Apache/2.2.22

以下是站点配置:

<VirtualHost *:80>
  ProxyPreserveHost On
  ServerName www.xxx.com
  ServerAlias xxx.com
  ProxyPass  /excluded !
  ProxyPass /investor http://127.0.0.1:81/investor
  ProxyPass /phppgadmin http://127.0.0.1:81//phppgadmin
  ProxyPass / http://127.0.0.1:9000/ keepalive=On
  ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>

添加后keepalive=开启,我注意到有所改善。但代理错误仍然发生!

相关内容