【发布时间】:2016-07-30 23:41:29
【问题描述】:
我想在 localhost 上测试子域。我有以下说明: 在启动服务器以运行应用程序之前,应配置主机,以便应用程序可以支持多个用户的子域。为此,请在终端中键入 sudo nano /etc/hosts 进入主机文件,然后在文件末尾添加子域,如下所示:
127.0.0.1 admin.daycare.no
127.0.0.1 daycare.no
127.0.0.1 worker.daycare.no
127.0.0.1 manager.daycare.no
127.0.0.1 parent.daycare.no
我按照上述说明进行操作。尝试检索 URL 时遇到以下错误:http://daycare.no:3000/
Unable to determine IP address from hostname daycare.no
The DNS server returned: Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
请问我该如何解决?
【问题讨论】:
-
谁添加了关闭标志?下课后见。
标签: ruby-on-rails ruby localhost subdomain