listen 443;
server test.com;
location /test {
配置1, proxy_pass https://127.0.0.1:8080
配置2, proxy_pass https://127.0.0.1:8080/other
}
如果按照配置1,url中没有uri,如果请求https://test.com/test,那么请求就会转发到https://127.0.0.1:8080/test
如果按照配置1,url中没有uri,如果请求https://test.com/test,那么请求就会转发到https://127.0.0.1:8080/other
所以在常规情况下,尽量搞清楚自己的目的