Apache ProxyPass removes Authorization header

混江龙づ霸主 提交于 2019-12-01 08:45:38

You will have to set the proxy-chain-auth environment variable:

If the proxy requires authentication, it will read and consume the proxy authentication credentials sent by the client. With proxy-chain-auth it will also forward the credentials to the next proxy in the chain. This may be necessary if you have a chain of proxies that share authentication information. Security Warning: Do not set this unless you know you need it, as it forwards sensitive information!

http://httpd.apache.org/docs/2.2/mod/mod_proxy_http.html

<Location />
    AuthType basic
    SetEnv proxy-chain-auth 
</Location>

It turns out that it's not Apache that removed the Authorization header, but some other firewall component in our network.

We changed a setting in the firewall and now the ProxyPass directive above works just fine!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!