【发布时间】: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