子文件夹500内部服务器错误

时间:2014-08-30 17:07:42

标签: nginx

我的网站根路径为/www/joseph_memo

我可以正确访问索引,

我制作了一张相册,使用时应使用album/gallery.html访问相册页面。

但我得到500 Internal Server Error

详细错误日志

2014/08/30 17:15:06 [error] 19727#0: *3 rewrite or internal redirection cycle while internally redirecting to "/favicon.ico", client: 119.77.229.9, server: joseph-1986-01-21.info, request: "GET /favicon.ico HTTP/1.1", host: "joseph-1986-01-21.info"
2014/08/30 17:15:07 [error] 19727#0: *1 rewrite or internal redirection cycle while internally redirecting to "/favicon.ico", client: 119.77.229.9, server: joseph-1986-01-21.info, request: "GET /favicon.ico HTTP/1.1", host: "joseph-1986-01-21.info"
2014/08/30 17:15:07 [error] 19727#0: *4 rewrite or internal redirection cycle while internally redirecting to "/favicon.ico", client: 119.77.229.9, server: joseph-1986-01-21.info, request: "GET /favicon.ico HTTP/1.1", host: "joseph-1986-01-21.info"

Nginx conf

server{
    server_name joseph-1986-01-21.info;
    root /www/joseph_memo;
    expires off;
    try_files $uri/index.html $uri/gallery.html $uri;

    location ~* \.(js|jpg|png|css)$ {
    root /www/joseph_memo;
    expires 30d;
    }

文件夹结构

.
├── album
├── convert_encoding.rb
├── css
├── erb
├── howto.png
├── images
├── index.html
├── js
├── lib
├── README.md
├── trash
└── users

0 个答案:

没有答案