【问题标题】:Docker "The proxy server received an invalid response from an upstream server." after system rebootDocker“代理服务器收到来自上游服务器的无效响应。”系统重启后
【发布时间】:2021-04-18 14:50:57
【问题描述】:

我在 CentOS 7 上使用 WHM、CPanels 和 Apache 运行 Docker MERN 堆栈,在我重新启动服务器之前一切正常。我在网页上收到以下错误:

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.

搜索stackoverflow后,我发现如果我运行这个命令,我的问题就解决了:

iptables -t filter -F

我的问题是,是什么导致了我的问题?如何配置我的服务器,以便在每次服务器重新启动时都不需要运行此命令?每次重新启动时我是否制作脚本来运行此命令?我要配置 iptables 吗?

【问题讨论】:

    标签: docker docker-compose centos7 iptables


    【解决方案1】:

    只是为了回答我自己的问题,我很愚蠢并且不愿意打开正确的出站端口,我只打开了入站端口。

    【讨论】:

      猜你喜欢
      • 2012-04-07
      • 2015-10-09
      • 2023-03-17
      • 2019-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-15
      相关资源
      最近更新 更多