开发者

Creating a HttpModule that routes traffic to another server

开发者 https://www.devze.com 2023-03-02 14:14 出处:网络
I ran into a rather tricky problem at one of my clients. They have a simple router which can only forward a single port to a single machine. However, they have several applications on several servers

I ran into a rather tricky problem at one of my clients. They have a simple router which can only forward a single port to a single machine. However, they have several applications on several servers requiring port 80.

So, I was thinking I could write a HttpModule that开发者_如何学C receives traffic and creates a HttpWebRequest to another internal server. When the HttpWebResponse comes back, the HttpModule writes the content to the HttpResponse.

Has this been done before? And does it make sense?


Take a look at Microsoft Application Request Routing Version 2.5 for IIS 7

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a58d3bfc-e17e-4749-93f4-474081358b44

0

精彩评论

暂无评论...
验证码 换一张
取 消