I set the reverse proxy code at the front end as follows
proxyTable: {
  "/API":{
    target: "http://dev.snhb.group:9090",
   // target: "192.168.31.110:9090",
    changeOrigin: true,
    secure: false,
    pathRewrite: {
      "^/API":"/"
    }
  }
},
:
export function listLineSelect() {
return request({
    url: "/API/pcms/pcms/alarm/listAllLine",
    method: "post",
    baseURL: "",
    params: {}
})}
 there is no problem with the development environment 
 but such problems are encountered in the production environment 
 Request URL:  http://localhost:9090/API/pcms/security/sso/ajaxcheck?account=gmservice&password=123546
Request Method: POST 
 Status Code: 404 
 Remote Address: 127.0.0.1 
 Referrer Policy: no-referrer-when-downgrade 
I want to become this request http://localhost:9090/pcms/security/sso/ajaxcheck?
 so I tried to configure 
 server {
    listen       9090;
    server_name  localhost;
    -sharpcharset koi8-r;
    -sharpaccess_log  logs/host.access.log  main;
    
    location ~* /api/ {
        proxy_pass  http://dev.snhb.group:9090;
        root   html;
        index  index.html index.htm;
    }
    doesn"t work. I don"t know if you have any good ideas. Thank you
