【发布时间】:2019-02-19 09:24:32
【问题描述】:
我正在尝试使用 nginx 将一些额外的自定义请求标头设置为上游。但它不起作用(没有设置标题)。任何帮助将不胜感激。
location /someUrl {
proxy_pass_request_headers on;
proxy_set_header Test ABCDE;
proxy_pass http://example.com;
}
【问题讨论】:
-
什么版本的 nginx?
-
@Shawn C. 我使用的是 1.14.0 版
标签: http nginx http-headers reverse-proxy