location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://xxx.com;
}location /socket.io {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://xxx.com;
}
location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://xxx.com;
}location /socket.io {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://xxx.com;
}