- 空格:默认匹配,普通匹配 ```shell location / { root /home; }
- =:精确匹配```shelllocation = /imooc/img/face1.png {root /home;}
- ~:匹配正则表达式,区分大小写```shell#GIF必须大写才能匹配到location ~ .(GIF|jpg|png|jpeg) {root /home;}
- ^~:以某个字符路径开头 ```shell location ^~ /imooc/img { root /home; }
```
