1
Nginx 1.2.2:如何使try_files工作?
我最近将nginx更新到1.2.2版,以下条目似乎已损坏;大概是版本之间的语法变化了吗? location / { # First attempt to serve request as file, then # as directory, then fall back to index.html try_files $uri /index.html; } 当我浏览到http://www.mysite.com/a-non-existent-url时,我被重定向到“ 500 Internal Server Error”错误页面。进行以下日志输入; 2012/08/13 09:20:29 [error] 18457#0: *60 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 10.0.14.1, server: mysite.com, request: …