nginx 代理b域名

server_name a.com
location ^~ /bus {
  proxy_pass https://b.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    }
}

如果只有proxy_pass 报错400

400 Bad Request
Request Header Or Cookie Too Large

 

posted @ 2023-11-22 22:36  huakai201  阅读(8)  评论(0编辑  收藏  举报