Laravel Homestead,无法让 Xip.io 工作?

问题描述

我尝试过谷歌搜索,但一无所获。我已按照有关设置主机文件Homestead.yaml 文件的说明进行操作。我使用的是新 Mac 并且想要设置 Laravel Homestead?

这是我的主机文件

192.168.10.10    etk.local.192.68.0.74.xip.io:8000
192.168.10.10    games.local.192.168.0.74.xip.io:8000

这是我的Homestead.yaml

    ip: "192.168.10.10"
    memory: 2048
    cpus: 2
    provider: virtualBox

    authorize: ~/.ssh/id_rsa.pub

    keys:
- ~/.ssh/id_rsa

   folders:
- map: ~/Web/Projects/Laravel/2021/etk
  to: /home/vagrant/code/etk

- map: ~/Web/Projects/Laravel/2021/games
  to: /home/vagrant/code/games

   sites:
- map: etk.local
  to: /home/vagrant/code/etk/public
  PHP: "7.1"

- map: etk.local.192.168.0.74.xip.io
  to: /home/vagrant/code/etk/public
  PHP: "7.1"

- map: games.local
  to: /home/vagrant/code/games/public
  PHP: "8.0"

- map: games.local.192.168.0.74.xip.io
  to: /home/vagrant/code/games/public
  PHP: "8.0"

我可以在浏览器中访问 localhost:8000,但不能访问 URL etk.local.192.168.0.74.xip.io:8000,也不能访问游戏 URL?例如,当我在 Chrome 浏览器中查看时,我只能看到错误消息:DNS_PROBE_FINISHED_NXDOMAIN? 有人可以帮忙吗?非常感谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)