规则的优先级
- location = /
- location = /index
- location ^~ /article/
- location ^~ /article/files
- location ~ .(gif|png|js|css)$
- location /
http://192.168.0.1/
http://192.168.0.1/index
http://192.168.0.1/article/files/
http://192.168.0.1/article/files/
a.精准匹配的优先级最高
b.普通匹配(最长匹配)
c.正则匹配