Apache ProxyPass删除授权标头

编程入门 行业动态 更新时间:2024-10-06 01:41:32
本文介绍了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 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删除授权标头

本文发布于:2023-11-03 04:47:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554274.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apache   ProxyPass

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!