I eventually figured this out. It is a multi-step process
- use
bench stopto stop the sites - rename the site folder (e.g. site1.local) to what you want it to be (e.g. erp.domain.com)
- edit the
config/nginx.conffile (as noted above) and search onsite1.localor whatever the folder name was and then replace the value with new folder name - run
bench startto start up things.
That should do it.