Configuring Homestead NGINX default provision script

homestead custom nginx
Share on facebook
Share on twitter
Share on linkedin

If you would like to customize nginx configuration for specific site, but you don’t want to be customizing it each time when you run provision flag in your reload command,

then here we go with quick tutorial on: how to customize nginx blocks they will be deployed each time you reload your vagrant.


When you navigate yourself to your Homestead root directory, you should be able to open scripts directory where you can see following script files:

Enter  cd site-types , and from there copy (is default script) into new config file:

And than edit *from line 40 to 90:


Then let’s get back to your Homestead.yaml file, and in sites section append

That will build this customized nginx configuration on that specific site each time you run with –provision flag.

0 0 vote
Article Rating

Subscribe to our newsletter

Be first to read new helpful post

Share this post with your friends

Share on linkedin
Share on xing
Share on twitter
Share on facebook
Notify of
Inline Feedbacks
View all comments