设置主机名在IIS绑定打破网站 [英] Setting the Hostname in IIS Bindings Breaks Website

查看:833
本文介绍了设置主机名在IIS绑定打破网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚买了一台Windows Server 2008的VPS,我遇到了麻烦IIS7设置。

I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7 setup.

我创建IIS中的新网站的路径,IP地址和主机名(如www.nameofsite.com'),然后单击确定。当我浏览到该网站就拉起http://www.nameofsite.com在浏览器中...没有... IE无法显示该网页。

I created a new website in IIS with the path, ip address, and hostname (like 'www.nameofsite.com') and click OK. When I browse to the site it pulls up "http://www.nameofsite.com" in the browser and... nothing... IE cannot display this webpage.

如果我头脑一片空白在绑定的主机名,然后点击[浏览]它工作正常(它需要我来 http://10.10.2.92 - 计算机的IP)。因此,在进入主机打破了网站。

If I blank out the hostname in the bindings and click [Browse] it works fine (it takes me to http://10.10.2.92 - the computer's ip). So entering the hostname breaks the website.

这是我缺少的是什么我任何想法?我可能没有运行的服务或角色,我失踪?

Any ideas on what I'm missing? Services I might not have running or roles I'm missing?

没有服务器角色最初安装的,所以我安装了IIS,DHCP,DNS和应用服务器...矫枉过正的VPS,但我不知道要安装的。

No server roles were initially installed on the VPS so I installed IIS, DHCP, DNS, and Application Server... overkill, but I wasn't sure what to install.

推荐答案

首先它必须是在DNS或客户机的hosts文件。为了验证这一点,你可以将主机名添加到服务器主机的文件。

First it has to be in DNS or the client machines hosts file. To test this you can add the hostname to the servers hosts file.

转到开始 - >运行,键入你要编辑的hosts文件etc目录下的司机转变。在它的条目是像本地DNS。他们只在本地机器上工作!

Go to start -> run and type "drivers" change to the etc directory you want to edit the hosts file. The entries in it are like a local DNS. They only work on the local machine!

这篇关于设置主机名在IIS绑定打破网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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