Nginx config proxy pass to cross domain

url: http://127.0.0.1/proxy/test.html

1
2
3
4
location /proxy/ {
proxy_pass http://127.0.0.1/;
}
proxy url: http://127.0.0.1/test.html
1
2
3
4
location /proxy/ {
proxy_pass http://127.0.0.1;
}
proxy url: http://127.0.0.1/proxy/test.html
1
2
3
4
location /proxy/ {
proxy_pass http://127.0.0.1/aaa/;
}
proxy url: http://127.0.0.1/aaa/test.html
1
2
3
4
location /proxy/ {
proxy_pass http://127.0.0.1/aaa;
}
proxy url: http://127.0.0.1/aaatest.html
;