Answer the question
In order to leave comments, you need to log in
How to add new sites using vagrant, homestead, laravel using serve?
How I try to do this in windows 10:
Open Git Bash Here
homestead up
homestead ssh
serve quickstart-intermediate.app /home/vagrant/code/quickstart-intermediate/public 80
192.168.10.10 quickstart-intermediate.app
Answer the question
In order to leave comments, you need to log in
You got back a little confused. The command serve
is needed if you do not have a local server, only PHP (which may well work as a server if necessary). And Homestead is virtual with a full-fledged Ubuntu and a web server. Therefore, serve
you don’t need to run it there, Nginx is already spinning there.
But then the interesting begins :)
In order for Nginx to be able to serve your domain, it (Nginx) must have a config for it. And for this you need to add the domain and path to the configuration Homestead.yaml
, and then do homestead up --provision
.
All of this is detailed in the Homestead documentation .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question