Nginx redirects the interfac /API to another interface/API

Recently, there is a problem with the project. When the client accesses the background, the path is missing. The background will definitely report an error of 404. However, at present, the client has no way to correct this error in a short time, so it can only modify it in the background java.xxxx.com/abc/auth/queryUserById . JSON
actual request – java.xxxx.com/auth/queryUserById .json

With spring cloud experience, you can see from this path that nginx and gateway are used

I have checked some methods on the Internet, mainly redirecting the request in nginx, but my request is post request. After redirection, it becomes get, and some parameters are lost

Finally, I tried many times. Finally, this situation can only be solved by reverse proxy

Location/auth/{
omit : http://xxx.xxxx.xxx : XXX (IP): port/auth /;
omit

}

This solves, but still wants to make complaints about the path of Tucao, and the mistake is too low.

Read More: