一个请求 /api1/auth/loginout/
我在接收到 /api1/auth/loginout 的请求后要把请求首地址 api1 转发到另一个服务器的 auth/logunout/接口要如何去写
这么写的话转发过去 请求接口依然是 /api1/auth/loginout
location /api1 {
proxy_pass http://192.168.0.1:5000/;
}
我在接收到 /api1/auth/loginout 的请求后要把请求首地址 api1 转发到另一个服务器的 auth/logunout/接口要如何去写
这么写的话转发过去 请求接口依然是 /api1/auth/loginout
location /api1 {
proxy_pass http://192.168.0.1:5000/;
}