location /api { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://127.0.0.1:9003;}...