nginx和wordrpress登录,注销页面抛出错误

时间:2018-10-16 03:01:24

标签: wordpress nginx digital-ocean

每当我输入admin url并在登录页面上引发以下错误时,我就将数字海洋小滴与nginx和wordpress一起使用。登录和注销页面抛出此错误,其他页面运行正常。

这是错误日志

[error] 27601#27601: *14 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: xx.xx.xx.226, server: xxxxxxx.com, request: "GET /wp-login.php?redirect_to=https%3A%2F%2Fxxxxx.com%2Fwp-admin%2F&reauth=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx.com"

这是我的nginx配置

 location ~ \.php$ {
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
         include snippets/fastcgi-php.conf;
         fastcgi_param HTTP_PROXY "";
         fastcgi_pass 127.0.0.1:9000;
        }

请帮助我

0 个答案:

没有答案