Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php cURL 35 CDN+;后面的WordPress站点运行状况错误;WAF防火墙_Php_Wordpress_Cdn_Wordpress Rest Api_Web Application Firewall - Fatal编程技术网

Php cURL 35 CDN+;后面的WordPress站点运行状况错误;WAF防火墙

Php cURL 35 CDN+;后面的WordPress站点运行状况错误;WAF防火墙,php,wordpress,cdn,wordpress-rest-api,web-application-firewall,Php,Wordpress,Cdn,Wordpress Rest Api,Web Application Firewall,我的站点位于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 stabilit

我的站点位于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)


如何解决此问题?

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

解决方案是修改hosts文件(/etc/hosts),将每个网站解析为源IP地址

sudo-vim/etc/hosts

将有问题的站点添加到源IP地址

例如:

105.67.244.102 mydomain

就这样。环回错误应该消失

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)