nginx 配置代理某个路径
location /test{ proxy_pass http://localhost:8765/test; proxy_set_header Host $http_host; }
其中红色的那句可以保证 post 等请求不会出现301
- 上一篇 »正反向代理、负载均衡、Nginx配置实现
- 下一篇 »nginx反向代理配置及优化
location /test{ proxy_pass http://localhost:8765/test; proxy_set_header Host $http_host; }
其中红色的那句可以保证 post 等请求不会出现301