Eu fiz isso editando vi / etc / nginx / sites-enabled / default
location /api2/ {
proxy_pass http://0.0.0.0:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^/api2/(.*) /$1 break;
}
location /api1/ {
proxy_pass http://0.0.0.0:8443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^/api1/(.*) /$1 break;
}
Funcionou!