按照官网的文档安装了Larval Homestead,但是虚拟机启动后站点无法正常访问,提示No input file specified.
下面是Homestead.yaml的配置内容
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: jack
name: jack
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: "/Users/Jack/laravel"
to: "/home/vagrant/laravel"
sites:
- map: homestead.app
to: "/home/vagrant/laravel/public"
hhvm: true
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
/Users/Jack/laravel这个Laravel包是我用composer安装的,用php artisan -serve 测试没问题 可以正常访问。
这个应该是nginx的设置问题吧?有welcome to nginx吗?
我出现过这个问题,解决办法是,将hosts文件中配置的域名放置到最前面。至于为什么,还不是很清楚。你可以尝试一下~
我也出现这个问题,楼主解决了吗
你们为什么用Homestead?我直接在VMware的Linux虚拟机里面搭建好LNMP环境,然后用Laravel,一点问题都没有!