nginx:proxy_pass某个路径且带上query_string的方法

示例代码,把wp6路径的所有请求转发到其他域名的wp6路径,且带上query_string。

location /wp6/ {
                proxy_pass http://xxx.com/wp6/;
                proxy_set_header QUERY_STRING $query_string;
        }
  • 当前日期:
  • 北京时间:
  • 时间戳:
  • 今年的第:18周
  • 我的 IP:3.149.10.88
农历
五行
冲煞
彭祖
方位
吉神
凶神
极简任务管理 help
+ 0 0 0
Task Idea Collect