Homestead.yaml 多域名不生效

  • 慢点
  • 2019-01-02 11:16:30
  • 145已阅读
Homestead.yaml 在一个共享文件夹下配置多个虚拟主机不生效

不生效配置,启动没有报错,但访问不了网站

folders:

    - map: E:/project

      to: /home/vagrant


sites:

    - map: ray.com

      to: /home/vagrant/ray.com/public


    - map: ray.test

      to: /home/vagrant/ray.test


可以使用的配置,配置多个同步文件夹

folders:

    - map: E:/project/ray.com

      to: /home/vagrant/ray.com


    - map: E:/project/ray.test

      to: /home/vagrant/ray.test

sites:

    - map: ray.com

      to: /home/vagrant/ray.com/public


    - map: ray.test

      to: /home/vagrant/ray.test


注意配置对齐 不然也不会生效