nginx 反向代理location配置匹配规则
当我们访问http://proxy_location/my_path时:
location | proxy_pass | 代理路径 |
---|
/proxy_location/ | http://server | http://server/proxy_location/my_path |
/proxy_location/ | http://server/ | http://server/my_path |
/proxy_location | http://server | http://server/proxy_location/my_path |
/proxy_location | http://server/ | http://server//my_path |
location | proxy_pass | 代理路径 |
---|
/proxy_location/ | http://server/path | http://server/pathmy_path |
/proxy_location/ | http://server/path/ | http://server/path/my_path |
/proxy_location | http://server/path | http://server/path/my_path |
/proxy_location | http://server/path/ | http://server/path/my_path |