location /test{ proxy_pass http://localhost:8765/test; proxy_set_header Host $http_host; } 其中红色的那句可以保证 post 等请求不会出现301 相关文章: 2021-08-01 2021-11-20 2021-12-18 2021-08-17 2021-08-17 2022-12-23 2022-12-23 2022-12-23