【问题标题】:Not able to resolve 127.0.0.1 to custom domain无法将 127.0.0.1 解析为自定义域
【发布时间】:2014-09-18 04:16:19
【问题描述】:

在 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

【问题讨论】:

  • 只需在 debugmodesample.com 之前添加 www。它会起作用的。即 www.debugmodesample.com
  • 你确定你已经在 IIS 中的网站绑定中映射了这个域吗?因为否则它将无法正常工作。

标签: iis localhost hosts


【解决方案1】:

先生,这里工作正常,我怀疑 IIS 是否正在运行并在端口 80 上运行...不知道其他情况!

【讨论】:

    【解决方案2】:

    您是否尝试在 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.
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-24
      • 2013-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-29
      • 1970-01-01
      相关资源
      最近更新 更多