将同一域上的特定URL转发到不同的服务器 [英] Forward specific urls on same domain to different servers
问题描述
在部署具有多个市场的大型站点(IIS,.NET,EPiServer)期间,我们希望在将市场添加到新的Web平台后将市场转发到新的服务器,但是我们仍然希望使用相同的市场领域.
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->旧服务器,ip 1.1.1.1
www.customer.com/marketB->旧服务器,IP 1.1.1.1
www.customer.com/marketC->新服务器,ip 2.2.2.2
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
什么是最佳做法?
我们是否应该在基于url的服务器前添加负载均衡器,以将流量发送到正确的服务器,或者是否可以在dns级别执行此操作,还是应该让所有流量转到一台服务器并使用HTTPRedirect重定向流量?到新服务器.还是有其他选择? (首次发布至少需要6个月的时间)
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)
推荐答案
您将不得不依赖具有URL Rewrite v2和应用程序请求路由的反向代理
You will have to rely on Reverse Proxy with URL Rewrite v2 and Application Request Routing
这篇关于将同一域上的特定URL转发到不同的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!