Nginx 500内部错误

Nginx 500内部错误,nginx,Nginx,它位于nginx.conf中 这是我的nginx配置,我还有另外两个反向代理的站点,出于某种原因,它们只适用于index.php。但我想知道的是,为什么我得到500个内部错误 下面是我的一些nginx错误日志 http { server { listen 443 ssl; server_name node.ramblr.io; server_tokens off; root /home/john/public_html/

它位于nginx.conf中

这是我的nginx配置,我还有另外两个反向代理的站点,出于某种原因,它们只适用于index.php。但我想知道的是,为什么我得到500个内部错误

下面是我的一些nginx错误日志

   http {
 server {
        listen   443 ssl;
        server_name node.ramblr.io;
        server_tokens off;
        root /home/john/public_html/node.ramblr.io;
        index index.php index.html index.htm;   

            ssl                  on;
            ssl_certificate      /etc/pki/tls/certs/node.ramblr.io.crt;
            ssl_certificate_key  /etc/pki/tls/private/node.ramblr.io.key;
            ssl_session_timeout  5m;
            ssl_protocols  SSLv3 TLSv1;
            ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+EXP;
            ssl_prefer_server_ciphers   on;

                   location / {
            try_files $uri $uri/ /index.html;
            }

                 location ~ /\.ht {
                   deny all;
                    }
    }
}

ls-l/home/john/public_html/ramblr.io的输出是什么?看起来Nginx worker没有读取此目录的权限要避免内部重定向,您可以尝试添加一个空位置:
location~\.html${}
location~\.html${}如果我想使用like.php文件,我需要添加另一个类似的文件吗?位置~\.php${}[root@webserverpublic_html]#ls-l/home/john/public_html/node.ramblr.io总计0-rw-r--r--1 john john 0 Jan 15 20:37 index.html要添加这是从源代码编译的nginx 1.8.0
2016/01/16 00:32:36 [crit] 6458#0: *5 stat() "/home/john/public_html/node.ramblr.io//index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html" failed (13: Permission denied), client: 77.98.3.250, server: node.ramblr.io, request: "GET / HTTP/1.1", host: "node.ramblr.io"
2016/01/16 00:32:36 [crit] 6458#0: *5 stat() "/home/john/public_html/node.ramblr.io//index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html" failed (13: Permission denied), client: 77.98.3.250, server: node.ramblr.io, request: "GET / HTTP/1.1", host: "node.ramblr.io"
2016/01/16 00:32:36 [error] 6458#0: *5 rewrite or internal redirection cycle while internally redirecting to "//index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html", client: 77.98.3.250, server: node.ramblr.io, request: "GET / HTTP/1.1", host: "node.ramblr.io"
2016/01/16 00:32:48 [crit] 6458#0: *6 stat() "/home/john/public_html/ramblr.io/" failed (13: Permission denied), client: 77.98.3.250, server: ramblr.io, request: "GET / HTTP/1.1", host: "test.animegrinder.com"
2016/01/16 00:32:48 [crit] 6458#0: *6 stat() "/home/john/public_html/ramblr.io/" failed (13: Permission denied), client: 77.98.3.250, server: ramblr.io, request: "GET / HTTP/1.1", host: "test.animegrinder.com"