conf/nginx.conf
nginx location = A ------精准匹配
location A ----------正则匹配
配置location = A后,先匹配精准,匹配不到跳转到正则匹配
location = A ---(建议定位到文件,locatin = /a.txt)
root /var/www/html
index index.htm
location A
root /usr/local/html
index index.html
先匹配精准下的 index.htm,如果匹配不到,就匹配正则,然后再找index.htm
阅读(648) | 评论(0) | 转发(0) |