Varant框仅显示phpinfo()

时间:2016-02-23 11:28:46

标签: laravel vagrant laravel-5.2 homestead

我在我的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

什么是错?

1 个答案:

答案 0 :(得分:0)

我得到解决方案:

我只是去更改主机文件{/ etc / hosts}。

现在工作正常。