admin管理员组文章数量:1336587
I've been working on a site for a client for a few months now and recently I noticed that the Health Check functionallity added on the newest versions of WordPress is reporting two errors about the Rest API and loopback connections. On both errors it says connection refused, the thing is the site works fine and also I can query the API via Postman and it will work. This is the complete error:
Error: [] stream_socket_client(): unable to connect to ssl://example:443 (Connection refused)
As I said, the site works fine over HTTPS. Port 80 is redirected to HTTPS too.
The web is running on Ubuntu Server with kernel Linux 4.4.0-81-generic x86_64, PHP version is 7.2.14, Apache2, MySQL, 512MB of limit memory for PHP and WordPress running 5.2.2 version.
On the Apache error.log file I can see the following errors:
[Thu Jul 25 14:00:10.250021 2019] [authz_core:debug] [pid 38327] mod_authz_core.c(809): [client myPublicIP:52352] AH01626: authorization result of <RequireAny>: granted, referer: .php
[Thu Jul 25 14:00:10.361701 2019] [ssl:debug] [pid 38327] ssl_engine_kernel.c(354): [client myPublicIP:52352] AH02034: Subsequent (No.5) HTTPS request received for child 6 (server example:443), referer: .php
[Thu Jul 25 14:00:10.361884 2019] [authz_core:debug] [pid 38327] mod_authz_core.c(809): [client myPublicIP:52352] AH01626: authorization result of Require all granted: granted, referer: .php
[Thu Jul 25 14:00:10.361891 2019] [authz_core:debug] [pid 38327] mod_authz_core.c(809): [client myPublicIP:52352] AH01626: authorization result of <RequireAny>: granted, referer: .php
[Thu Jul 25 14:00:11.616277 2019] [ssl:info] [pid 36694] (70014)End of file found: [client 195.76.100.2:52351] AH01991: SSL input filter read failed.
[Thu Jul 25 14:00:11.616316 2019] [ssl:debug] [pid 36694] ssl_engine_io.c(1017): [client 195.76.100.2:52351] AH02001: Connection closed to child 11 with standard shutdown (server example:443)
[Thu Jul 25 14:00:13.336206 2019] [ssl:info] [pid 36691] (70007)The timeout specified has expired: [client myPublicIP:52361] AH01991: SSL input filter read failed.
[Thu Jul 25 14:00:13.336355 2019] [ssl:debug] [pid 36691] ssl_engine_io.c(1017): [client 195.76.100.2:52361] AH02001: Connection closed to child 8 with standard shutdown (server example:443)
[Thu Jul 25 14:00:15.424427 2019] [ssl:info] [pid 38327] (70007)The timeout specified has expired: [client myPublicIP:52352] AH01991: SSL input filter read failed.
[Thu Jul 25 14:00:15.424573 2019] [ssl:debug] [pid 38327] ssl_engine_io.c(1017): [client 195.76.100.2:52352] AH02001: Connection closed to child 6 with standard shutdown (server example:443)
The virtual host config is the following:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName example
DocumentRoot /var/www/html
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/certificate.pem
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/intermediate.pem
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
A few weeks ago it was working fine. Also Simple History plugin stopped working because it cannot connect with the API.
Let me know if any more details are needed to help me solve the issue.
Thanks in advance guys!
本文标签: REST API and Loopback error
版权声明:本文标题:REST API and Loopback error 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742411006a2469784.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论