---
title: "无法获取proxy_set_header的变量值"
author: "sichunli_030"
date: "2017-04-15T11:26:11Z"
tags: []
categories: ["开源软件"]
slug: "proxy-set-header"
draft: false
lastmod: "2017-04-15T11:48:07Z"
id: 2369240
url: "https://rd-030.iteye.com/blog/2369240"
---

<http://www.thinksaas.cn/ask/question/16504/>


注意：nginx对对header name的字符做了限制，默认 underscoresinheaders 为off，表示如果header name中包含下划线，则忽略掉。

解决办法：

配置中http部分 增加underscoresinheaders on; 配置
用减号-替代下划线符号_，避免这种变态问题。


<http://www.cnblogs.com/princessd8251/articles/6267456.html>