简体   繁体   English

使用ASP.NET MVC作为反向代理

[英]Using ASP.NET MVC as reverse proxy

We're looking for any kind of 'reverse proxy' logic in ASP.NET. 我们正在ASP.NET中寻找任何一种“反向代理”逻辑。

We have a controller receiving a request that has been authenticated by ASP.NET itself and then we'd like to 'forward' this request to a different internal machine in a trusted domain (keeping all the headers/params/cookies/...). 我们有一个控制器接收到已由ASP.NET本身进行身份验证的请求,然后我们希望将此请求“转发”到受信任域中的其他内部计算机(保留所有标头/参数/ cookies / ... )。

It is a way to hide the internal machine. 这是隐藏内部计算机的一种方法。

Any idea / solution is welcome. 欢迎任何想法/解决方案。

Are you using full IIS? 您是否在使用完整的IIS? If so then you can use the URL Rewrite and ARR modules. 如果是这样,则可以使用URL重写和ARR模块。 See http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing 参见http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM