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?
Sorry, this is the wrong question. . . I will go on the computer and delete him later. . .
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.