我在我的Laravel 5应用程序中使用vagrant。
我只得到" phpinfo()"页面,如果我尝试访问我的第二个域。
1.homestead.app [工作]
2.lshop.app [show" phpinfo()"]
我的homestead.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.app
to: /home/vagrant/Code/laravel/public
- map: l5shop.app
to: /home/vagrant/Code/lshop/public
databases:
- homestead
什么是错?
答案 0 :(得分:0)
我得到解决方案:
我只是去更改主机文件{/ etc / hosts}。
现在工作正常。