I am trying to use VVV to set up a local development environment for an existing WordPress site (hosted on WP Engine if it makes any difference) but am unable to change the nginx.conf
to point to the correct webroot.
Following the official documentation I have provisioned a new site using the base custom site template then swapped it for our WordPress install and database.
This creates a site with a public_html webroot. Since our site is on Apache we have an htdocs folder instead. So, per these instructions I have edited provision/vvv-nginx.conf
to change the root and have reprovisioned.
On reprovisioning, the nginx.conf gets overwritten with the original one form the custom site template.
Why is this happening and how do I fix it?
I have also tried sshing into the vagrant box and manually editing the config per these instructions but that didn't seem to work either.