在 IIS7 中重现停放页面行为的最佳方法是什么?网络平台
我过去曾通过将不同域的许多主机头添加到一个 IIS7 网站条目并动态更改页面内容来创建类似停放页面的行为。我想知道它们是否不是一种不同或更好的方法来处理指向一个代码库的如此多的域。 IIS7 中网站的主机标头数量有限制吗?拥有如此多的主机标头是否会影响性能或稳定性?
I have created parked page like behavior in the past by adding many host headers for different domains to one IIS7 website entry and changing the content of the pages dynamically. I'm wondering if their isn't a different or better way to handle so many domains pointing to one codebase. Is their any limit on the number of host headers for a website in IIS7? Does it affect performance or stability by having so many host headers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想我必须自己回答这个问题...
我现在可以肯定地说,IIS7 将处理服务数百个指向同一网站代码库的主机标头。我们在一年的大部分时间里一直在运行这样的设置,并且表现良好。您可以编写一个脚本来从 CSV 文件导入主机标头,然后将其导入数据库。
Well, I guess I have to answer this one myself...
I can say with certainty now that IIS7 will handle serving many hundreds of host headers pointing to the same website codebase. We've been running a setup like this for the better part of a year and it performs well. You can write a script to import the host headers from a CSV file, then turn around and import them into your database.