试图解决为什么jQuery不工作后,我更改WordPress的网站url中的域名。 我在nginxdebugging日志中收到这些消息…
2017/10/18 16:01:59 [info] 6657#6657: *495 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while reading upstream, client: 221.234.103.135, server: example.com, request: "GET /wp-includes/js/wp-emoji-release.min.js?ver=4.8.2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com", referrer: "http://example.com/"; 2017/10/18 16:02:03 [info] 6657#6657: *498 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too (32: Broken pipe) while reading upstream, client: 221.234.103.135, server: example.com, request: "GET /wp-includes/js/jquery/jquery.js?ver=1.12.4 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com", referrer: "http://example.com/"; 2017/10/18 16:02:03 [info] 6657#6657: *506 client 221.234.103.135 closed keepalive connection 2017/10/18 16:02:04 [info] 6657#6657: *504 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too (32: Broken pipe) while reading upstream, client: 221.234.103.135, server: example.com, request: "GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com", referrer: "http://example.com/"; 2017/10/18 16:02:04 [info] 6657#6657: *496 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while reading upstream, client: 221.234.103.135, server: example.com, request: "GET /wp-includes/js/wp-embed.min.js?ver=4.8.2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com", referrer: "http://example.com/"; 2017/10/18 16:02:04 [info] 6657#6657: *507 client 221.234.103.135 closed keepalive connection
对configuration进行的唯一更改是nginx服务器地址和Wordpress站点URL。 该网站运行良好,但jQuery不起作用。
有任何想法吗?