我已经用 Redmine 连接了一个 Git 存储库。通过 Redmine GUI,我试图访问文件/目录,其中一些只是让我返回错误 404“在存储库中找不到条目或修订版。”
我试图访问目录client
但得到 404。
从production.log
我注意到以下几点:
Started GET "/projects/MYPROJECT/repository/revisions/master/show/client.html" for 212.57.58.2 at 2013-10-29 15:11:56 +0100
Processing by RepositoriesController#show as HTML
Parameters: {"id"=>"MYPROJECT", "rev"=>"master", "path"=>"client.html"}
Current user: pavel (id=4)
Rendered common/error.html.erb within layouts/base (0.2ms)
Completed 404 Not Found in 50ms (Views: 22.1ms | ActiveRecord: 3.3ms)
如您所见,redmine 尝试访问所有目录和所有没有扩展名的文件的client.html。
redmine 为什么要添加.html以及如何避免呢?