我必须浏览http://test.local/test/
才能查看index.php
。当然,我真的希望能够从http://test.local
查看此脚本。我的配置有什么问题?
// .homestead/Homestead.yaml
ip: "192.168.0.2"
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: test.local
#to: /var/www/test
to: ~/Documents/www/test <-- now pointing to
/etc/hosts
127.0.0.1 localhost
127.0.1.1 andy-desktop
192.168.0.2 test.local
$ ls -l /var/www/test/
total 4
-rwxrwxr-x 1 andy andy 31 May 12 14:22 index.php
为什么我的文件来自/test
?