image.png location / { root html; index index.html index.htm; try_files uri/ /index.html; } location /api/ { rewrite ^/b/(.*)1 break; proxy_pass http://IP:端口/; }