nginx A配置:
location /foo/ { proxy_pass http://192.168.1.56/; }
nginx B收到的请求://api
案例3
nginx A配置:
location /foo/ { proxy_pass http://192.168.1.56/; }
nginx B收到的请求:/foo/api
案例4
nginx A配置:
location /foo/ { proxy_pass http://192.168.1.56/; }
nginx B收到的请求:/foo/api
案例5
nginx A配置:
location /foo/ { proxy_pass http://192.168.1.56/bar/; }
nginx B收到的请求:/bar/api
案例6
nginx A配置:
location /foo { proxy_pass http://192.168.1.56/bar/; }