码迷,mamicode.com
首页 > 其他好文 > 详细

nginx 配置代理某个路径

时间:2017-02-27 17:56:20      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:ati   nginx   localhost   cal   header   pass   路径   logs   style   

 location /test{
    proxy_pass http://localhost:8765/test;
    proxy_set_header Host $http_host;
 }

其中红色的那句可以保证 post 等请求不会出现301

nginx 配置代理某个路径

标签:ati   nginx   localhost   cal   header   pass   路径   logs   style   

原文地址:http://www.cnblogs.com/savokiss/p/6475412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!