我们正在使用IIS Aplication Request路由和URL重写规则来反转对内部Web服务器的代理访问。
当IIS配置了匿名身份验证时,此方法有效,但添加基本身份验证会导致问题。在没有详细了解内部Web服务器的身份验证机制的情况下,我想要做的是 not 将授权头从IIS代理传递到目标Web服务器。
clientIP proxyIP HTTP GET /resource HTTP/1.1
Cache-Control: max-age=0\r\n
...
Authorization: Basic Base64EncodedCredentials
....
proxyIP serverIP HTTP GET /resource HTTP/1.1
Cache-Control: max-age=0\r\n
...
Authorization: Basic Base64EncodedCredentials <--need to remove this
....
任何提示都将不胜感激!