创建子域 - IIS7
也许有人可以帮助我理解为什么我无法创建子域。我的网站运行良好 mydomain.com 和 www.mydomain.com
但当我将 staging.mydomain.com 添加到绑定中时,我无法访问该地址由于某种原因。我在这里读到一篇文章,有人提到了 app.config 处理程序设置,但我不知道是什么。
谢谢。
Maybe some one can help me understand why i can't create sub domain. My site is working fine for
mydomain.com and www.mydomain.com
but when i added staging.mydomain.com to the bindings i can't reach to that address for some reason. i read a post here that someone mention the app.config handler setting but i don't know what.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生的情况是,您的托管提供商可能已为您的站点设置了 www.mydomain.com 和 domain.com 的主机名,但是您需要要求他将 staging.mydomain.com 添加到主机名列表中。
不幸的是,IIS 不支持通配符主机标头,因此您需要指定所需的实际主机名(也就是说,除非您拥有 IP 地址,此时您可以只使用 *,这将允许在那里看到任何主机名,并且你可以使用 URL 重写来做一些很酷的事情,但拥有 IP 的情况很少)。
What is happening is that your hosting provider probably has set host names for your site for www.mydomain.com and domain.com, however you would need to ask him to add staging.mydomain.com to the list of host names.
unfortunately IIS does not support wildcard host headers, so you will need to specify the actual host names that you need (that is unless you own the IP address at which point you could just use * which will allow any Host name to be seen there and you could use URL Rewrite to do cool stuff, but owning the IP is rarely the case).