无法将127.0.0.1解析为自定义域

时间:2014-09-18 04:16:19

标签: iis localhost hosts

在system32 / drivers / etc下的Hosts文件中我正在执行此操作

 # localhost name resolution is handled within DNS itself.
 #  127.0.0.1       localhost
 #  ::1             localhost
 127.0.0.1 debugmodesample.com

但有些127.0.0.1如何解析为debugmodesample.com

Ping无法使用debugmodesample.com

2 个答案:

答案 0 :(得分:0)

先生,在这里工作得很好,我怀疑如果IIS正在运行并且在端口80上运行......否则不知道!

enter image description here

enter image description here

enter image description here

enter image description here

答案 1 :(得分:0)

您是否尝试在IIS中绑定域名?

Open IIS Manager. (Assuming IIS 7).

In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add a binding.

In the Actions pane, click Bindings.

In the Site Bindings dialog box, click Add.

In the Add Site Binding dialog box, add the binding information and then click OK.

在绑定信息中,输入正确的主机名,然后在浏览器中进行检查。