如何使用通用数据库在两个不同的Iis服务器上托管网站? [英] How Do I Host A Website On Two Different Iis Server With Common Database?

查看:90
本文介绍了如何使用通用数据库在两个不同的Iis服务器上托管网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个Web应用程序,它使用asp.net 4.0和sql 2008 r2数据库托管在IIS上。现在我们需要使用其他域名设置与不同服务器相同的链接,但希望在以前服务器的新链接上保留相同的数据库。有谁能告诉我如何配置数据库从两个不同的服务器访问?

解决方案

嗨Ravikhoda



我假设您要设置2个带有1个通用数据库的站点?



站点1:testing1.com

站点2:testing2。 com



您需要做的就是在iis中设置一个新站点并将文件从site1.com复制到testing2.com





这有帮助吗?



我做了一些假设,所有服务器都能看到对方并且是在同一个网络等等。



谢谢



Paul


< blockquote>我觉得这叫做负载均衡..



你应该参考这个链接

Hi,

i have a web application which hosted on IIS with asp.net 4.0 and sql 2008 r2 database. now we need to setup the same link to different server with some other domain name but want to keep the same database on the new link from the previous server. can someone tell me how can we configure database to access from two different server?

解决方案

Hi Ravikhoda

I am assuming you want to setup 2 sites with 1 common database?

Site 1: testing1.com
Site 2: testing2.com

All you need to do is setup a new site in iis and copy the files from site testing1.com to testing2.com


Does this help?

I have made some assumptions that all servers can see each other and are o nthe same network,etc.

Thanks

Paul


I feel that this is called the load balancing ..

You should refer this LINK


这篇关于如何使用通用数据库在两个不同的Iis服务器上托管网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆