【发布时间】:2017-04-22 22:58:39
【问题描述】:
我浏览了整个互联网,但找不到任何适合我的解决方案,这让我抓狂。
我尝试使用 Tomcat8 和 Apache2 配置服务器。 所以我已经安装了 Tomcat8(它正在工作),现在我的 Apache 有问题(它正在工作)。
但现在我正在尝试从 apache2 到我的 Tomcat8 进行反向代理。
所以我已经配置了这个文件:/etc/apache2/sites-available/www.bloombooking.ca.conf
<VirtualHost *:80>
ServerName www.bloombooking.ca
ProxyPreserveHost On
ProxyRequests On
ProxyPass / http://144.217.85.74/
ProxyPassReverse / http://144.217.85.74:8080
</VirtualHost>
但是当我尝试访问我的 URL 时,它会永远加载并且我收到这条消息:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
我查看了日志,这是我得到的:
[Wed Dec 07 15:36:26.302595 2016] [proxy_http:error] [pid 18024:tid 139855795246848] (70007)The timeout specified has expired: [client 144.217.85.74:41866] AH01102: error reading status line from remote server 144.217.85.74:80
[Wed Dec 07 15:36:26.302604 2016] [proxy:error] [pid 18024:tid 139855795246848] [client 144.217.85.74:41866] AH00898: Error reading from remote server returned by /
[Wed Dec 07 15:36:26.302762 2016] [proxy_http:error] [pid 18024:tid 139855803639552] (70007)The timeout specified has expired: [client 144.217.85.74:41867] AH01102: error reading status line from remote server 144.217.85.74:80, referer: http://www.bloombooking.ca/
[Wed Dec 07 15:36:26.302781 2016] [proxy:error] [pid 18024:tid 139855803639552] [client 144.217.85.74:41867] AH00898: Error reading from remote server returned by /favicon.ico, referer: http://www.bloombooking.ca/
[...]
有人可以帮我吗?
【问题讨论】: