Forward specific urls on same domain to different servers

拜拜、爱过 提交于 2019-12-11 07:12:03

问题


During a rollout of a large site (IIS, .NET, EPiServer) with multiple markets we want to forward markets to the new server when the market has been added to the new web platform, but we still want to use the same domain.

www.customer.com/marketA -> old server, ip 1.1.1.1
www.customer.com/marketB -> old server, ip 1.1.1.1
www.customer.com/marketC -> new server, ip 2.2.2.2

What is best practice for this?
Should we add a load balancer in front of the servers that based on the url sends the traffic to the correct server or is it possible to do this on dns level, or should we let all traffic go to one server and redirect the traffic with HTTPRedirect to the new server. Or is there any other alternatives? (The rollout will take at least 6 month)


回答1:


You will have to rely on 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



来源:https://stackoverflow.com/questions/29257059/forward-specific-urls-on-same-domain-to-different-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!