我使用homestead.yaml映射了文件夾等;Vagrant - Homestead Setup多個站點
ip: "192.168.10.10"
...
folders:
- map: /Users/User/Desktop/folder/Homestead/First
to: /home/vagrant/First
- map: /Users/User/Desktop/folder/Homestead/Second
to: /home/vagrant/Second
sites:
- map: first.dev
to: /home/vagrant/First/public
- map: second.dev
to: /home/vagrant/Second/public
但是,當我設置的hosts文件,etc/hosts
我second.dev到192.168.10.10我發現映射去first.dev,不,我已經建立了second.dev的映射。
我如何才能使映射返回正確的網站?
編輯:我使用的是Mac OS X.
同樣在這裏。 Homestead安裝在Windows機器上,主機配置工作正常。當我嘗試通過局域網從Mac連接到Windows家園時,它始終加載「first.dev」 – daVe 2015-10-22 13:16:02