php – ERR_ICANN_NAME_COLLISION使用url而不是ip with hosts文
发布时间:2020-12-13 21:55:32 所属栏目:PHP教程 来源:http://127.0.53.53:8000/. 我的
导读:我正在尝试使用laravel宅基并将“homestead.dev”重定向到“192.168.10.10”.我可以看到使用IP但不是“homestead.dev”的网站. 我收到此错误: ERR_ICANN_NAME_COLLISION Pinging homestead.dev以127.0.53.53响应. 我也可以访问该网站:http://127.0.53.53:8
我正在尝试使用laravel宅基并将“homestead.dev”重定向到“192.168.10.10”.我可以看到使用IP但不是“homestead.dev”的网站.
我收到此错误: ERR_ICANN_NAME_COLLISION Pinging homestead.dev以127.0.53.53响应. 我的家园.yaml: ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Code to: /home/vagrant/Code sites: - map: homestead.dev to: /home/vagrant/Code/myApp/public databases: - myApp # blackfire: # - id: foo # token: bar # client-id: foo # client-token: bar # ports: # - send: 50000 # to: 5000 # - send: 7777 # to: 777 # protocol: udp 主机文件: # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally,comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 192.168.10.10 homestead.dev 解决方法
我终于解决了.问题出在hosts文件中.这篇文章帮助我解决了这个问题:
https://serverfault.com/a/452269.
更改主机文件时,我移动并替换它,而不是复制和替换,因此权限已更改. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |