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;
}
}
}
它在nginx.conf中
这是我的nginx配置,我有两个其他网站被反向代理,并且由于某种原因只能用于index.php。但是,我想知道为什么我得到500内部错误。
以下是我的nginx
的一些错误日志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"