Apache ProxyPass删除授权标头 [英] Apache ProxyPass removes Authorization header

查看:121
本文介绍了Apache ProxyPass删除授权标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一些后端服务器之前将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 https://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删除授权标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆