我的网站根路径为/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"
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