如何在MacOS上的Laravel Homestead上设置子域

时间:2019-12-24 14:56:46

标签: laravel homestead

我有像site.test这样的域,还有3个像subdomain1.site.test这样的子域。它总是打开site.test。

这是我的主人

 192.168.10.10   site.test
 192.168.10.10   subdomain1.site.test
 192.168.10.10   subdomain2.site.test
 192.168.10.10   subdomain3.site.test

这是homestead.yaml

folders:
- map: ~/Projects/Laravel5/site
  to: /home/vagrant/code/site

sites:
- map: site.test
  to: /home/vagrant/code/site/public
  php: "7.1"
- map: subdomain1.site.test
  to: /home/vagrant/code/site/public
  php: "7.1"
- map: subdomain2.site.test
  to: /home/vagrant/code/site/public
  php: "7.1"
- map: subdomain3.site.test
  to: /home/vagrant/code/site/public
  php: "7.1"

0 个答案:

没有答案