VeryNginx
VeryNginx copied to clipboard
二级目录不能匹配??
使用一级目录,如
rule1: uri ≈ ^/abc
可以匹配到规则,但是使用下面
rule1: uri ≈ ^/abc/def
就匹配不到,前提是我的nginx 配置有rewrite了,跟这有关吗?
server {
...
location /abc/ {
rewrite ^/(.*)$ /abc/index.php?$1 last;
}
location ~ /abc/(.*)\.php{
fastcgi_pass ...
}
}