参考:https://www.cnblogs.com/duhuo/p/8323812.html
location ^~ /tea/ { root /usr/local/nginx/html/; }
- 请求:http://test.com/tea/tea1.html
- 实际访问:/usr/local/nginx/html/tea/tea1.html 文件,root 实际访问文件路径会拼接URL中的路径
Proxy Pass 匹配规则:
参考:https://www.cnblogs.com/duhuo/p/8323812.html
location ^~ /tea/ { root /usr/local/nginx/html/; }
Proxy Pass 匹配规则: