Php Homestead始终在本地主机上提供,Homestead.yaml配置被忽略

Php Homestead始终在本地主机上提供,Homestead.yaml配置被忽略,php,laravel,ubuntu,vagrant,homestead,Php,Laravel,Ubuntu,Vagrant,Homestead,虽然Homestead.yaml中的ip地址设置为默认的“192.168.10.10”,但我的项目始终在localhost:8000上运行 当我进入homestead.app时,我会看到“Apache2 Ubuntu默认页面”。这里有什么矛盾吗? 我的/etc/hosts: 192.168.10.10 homestead.app 127.0.0.1 localhost 127.0.1.1 ubuntu-machine # The following lines are desir

虽然Homestead.yaml中的ip地址设置为默认的“192.168.10.10”,但我的项目始终在localhost:8000上运行

当我进入homestead.app时,我会看到“Apache2 Ubuntu默认页面”。这里有什么矛盾吗?

我的/etc/hosts:

192.168.10.10   homestead.app
127.0.0.1   localhost
127.0.1.1   ubuntu-machine

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
每次更换和更换后,我都会使用Wagrant up--provision
我在Ubuntu 17.04上使用Homestead v5.1.0。

Homestead默认使用nguni而不是apache,所以听起来你的浏览器试图加载操作系统的web服务器。Oy,意思是nginx,而不是nguni。自动更正很奇怪。嗨,你已经找到解决办法了吗?我也遇到同样的问题
192.168.10.10   homestead.app
127.0.0.1   localhost
127.0.1.1   ubuntu-machine

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters