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时,我被redirect到“500内部服务器错误”错误页面。 以下是日志条目 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: "GET /a-non-existent-url HTTP/1.1", host: "www.mysite.com" 这用于按预期工作,我无法find此版本的正确语法。 现在应该如何? […]