当 ASP.NET 服务器作为反向代理位于 ISA 服务器后面时获取原始主机地址
我想知道当 Web 服务器位于充当反向代理的 ISA 服务器后面时,如何获取原始主机 IP。
其他反向代理(如鱿鱼)将“X_FORWARDED_FOR”值添加到请求标头,但 ISA 服务器不会。
谢谢
I'd like to know how could I get the original HOST IP when the web server is behind an ISA server acting as a reverse proxy.
Other reverse proxies -like squid- add the "X_FORWARDED_FOR" value to the request header, but ISA server doesn't.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不熟悉 ISA,但通过我雇主的解决方案,我们让代理设置了一个自定义标头,然后从那里检索它。默认情况下没有设置任何内容,我们必须特别请求发送某些内容。
如果这在 ISA 上不可能,那么您就不走运了。
I am not familiar with ISA, but with a solution at my employer we had the proxy set up a custom header and we retrieved it from there. Nothing was set by default, we had to specifically request that something was sent in.
If this is not possible on ISA, then you are out of luck.
拿不到。使用主机名代替它。
Cannot get. Use hostname instead of it.