开发者

Move a web application to another server but use the same subfolder and domain

my web application is installed on a Server A like

mywebsite.com/ --> GO to Server A mywebsite.com/myApp/ --> GO to Server A

and for performance reasons I would like have /myApp/ on an another Server B but using the same domain mywebsite.com/ --> GO to Server A mywebsite.com/myApp/ --> GO to Server 开发者_StackOverflow社区B

How to do it?

I use MS .net 4, IIS 7 on MS Server.

Thanks


Do you have a load balancer in front of servers A and B so that you could direct traffic appropriately? Do you have a firewall that may be able to support a rule to route traffice with that "/myApp" to go to B? Those would be my suggestions for ways to do it without changing the servers. However, if you did have to change the server, I would consider having an ISAPI filter that moves the requests to the other machine, but this is likely done better by setting up different domain names so that you have a mywebsite.com and a myapp.website.com so that each can resolve to a different server. If you do that, then server A just has to redirect the request to the other server for a simpler solution. Anyway, that is a few different ways to do it that I can see.


The trade-offs in firewall vs load balancer are really probably quite minuscule as many big sites have load balancers and firewalls, though I'd question the cost difference in having a load balancer versus changing firewall settings. I'd also investigate how feasible each option is for your situation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜