location /api/{ rewrite /api/(.*)$ /$1 break; proxy_pass http://10.12.34.149/; #proxy_set_header Host localhost;}