upload file API, cross-domain, and then reverse through Nginx. The configuration is as follows:
location /aaa/ {
proxy_pass http://www.xxx.com:8887/aaa/api/device/upload;
}
- Test:
proxy_pass http://bing.com;
can see the Bing page, so the configuration is fine. - Open the
http://www.xxx.com:8887/aaa/api/device/upload
backend brother on the website where the console can see the request (500,404). so the interface is fine.
(in addition, different ports on the same server)
then I was fascinated and didn"t know what the problem was.
if you want some help, thank you in advance.