nginx - read custom header from upstream server

前端 未结 3 1739
名媛妹妹
名媛妹妹 2020-12-04 11:20

I am using nginx as a reverse proxy and trying to read a custom header from the response of an upstream server (Apache) without success. The Apache response is the following

3条回答
  •  时光说笑
    2020-12-04 11:32

    I was facing the same issue. I tried both $http_my_custom_header and $sent_http_my_custom_header but it did not work for me.

    Although solved this issue by using $upstream_http_my_custom_header.

提交回复
热议问题