我在一些后端服务器之前将Apache服务器设置为反向代理.其中一台后端服务器需要基本身份验证,但是Apache似乎以某种方式从请求中删除了Authorization标头.
I have an Apache server setup as a reverse proxy in front of a some backend servers. One of the backend servers requires basic authentication but somehow Apache seems to remove the Authorization header from the request.
我是否必须配置一些特殊的东西以使Apache将Authorization标头传递给后端服务器?
Do I have to configure something special in order to make Apache pass on the Authorization header to the backend server?
我的Apache配置非常基本.我只添加了一些代理指令,例如:
My Apache configuration is pretty basic. I only added some proxy directives like:
ProxyRequests Off ProxyPass /backend-server backend.server SSLProxyEngine on推荐答案
事实证明,不是Apache删除了Authorization标头,而是我们网络中的其他一些防火墙组件.
It turns out that it's not Apache that removed the Authorization header, but some other firewall component in our network.
我们更改了防火墙中的设置,现在上面的ProxyPass指令可以正常工作!
We changed a setting in the firewall and now the ProxyPass directive above works just fine!
更多推荐
Apache ProxyPass删除授权标头
发布评论