我正在使用这个gitlab配置https://github.com/gitlabhq/gitlab-recipes/blob/master/web-server/apache/gitlab.conf
这是重写日志
125.121.60.59 - - [14/Aug/2014:12:50:23 +0800]
[xxx.xxx.com/sid#7f8e26a023c8][rid#7f8e26ca5be8/initial]
(4) RewriteCond: input='/home/git/gitlab/public/uploads/foo/bar/7b02f4c192/classes.png' pattern='!-f' => matched
我很确定/home/git/gitlab/public/uploads/foo/bar/7b02f4c192/classes.png
存在。
为什么这种模式匹配?
'/home/git/gitlab/public/uploads/foo/bar/7b02f4c192/classes.png' pattern='!-f' => matched
就是我们所期望的