search

Home  >  Q&A  >  body text

php - When setting up a virtual host, do I also need to set up the sites in homestead?

I am learning the laravel framework and using the homestead integrated environment installed by vagrant.
Now I am a little unclear about the role of sites-related settings in homestead.yaml. Why do I need to set it up in sites after configuring the virtual host in nginx?

给我你的怀抱给我你的怀抱2724 days ago721

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-06-10 09:49:48

    Sorry, this is the wrong question. . . I will go on the computer and delete him later. . .

    reply
    0
  • 代言

    代言2017-06-10 09:49:48

    In fact, you can ssh into the virtual machine

    serve domain.app /home/vagrant/Code/path/to/public/directory

    To set up the virtual host.
    Just restart nginx php-fpm.

    reply
    0
  • Cancelreply