VeryNginx icon indicating copy to clipboard operation
VeryNginx copied to clipboard

二级目录不能匹配??

Open bryant24 opened this issue 7 years ago • 3 comments

使用一级目录,如 rule1: uri ≈ ^/abc 可以匹配到规则,但是使用下面 rule1: uri ≈ ^/abc/def 就匹配不到,前提是我的nginx 配置有rewrite了,跟这有关吗?

server {
               ...
              location  /abc/ {
                      rewrite ^/(.*)$   /abc/index.php?$1 last;
               }
              location ~ /abc/(.*)\.php{
                      fastcgi_pass  ...
               }
}

bryant24 avatar Mar 24 '17 11:03 bryant24