来自CDN + WAF防火墙背后WordPress网站运行状况的cURL 35错误

问题描述

我的站点位于StackPath防火墙(CDN + WAF)后面。

使用本地WordPress网站运行状况功能时出现两个错误

Your site Could not complete a loopback request

Loopback requests are used to run scheduled events,and are also used by the built-in editors for themes and plugins to verify code stability.

The loopback request to your site Failed,this means features relying on them are not currently working as expected.

Error: cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to mydomain.com:443 (HTTP_Request_Failed)

The REST API encountered an error

The REST API is one way wordpress,and other applications,communicate with the server. One example is the block editor screen,which relies on this to display,and save,your posts and pages.

The REST API request Failed due to an error.
Error: cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to mydomain.com:443 (HTTP_Request_Failed)

我该如何解决

解决方法

由于该站点位于WAF防火墙之后,因此没有理由将其转到WAF,然后返回进行环回。我们希望它直接返回服务器。

解决方案是修改主机文件(/ etc / hosts),以将每个网站解析为原始IP地址。

sudo vim /etc/hosts

将相关站点添加到原始IP地址。

示例:

105.67.244.102 mydomain

就是这样。回送错误应该消失了。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...