Nope I’m not using bedrock… Just a WP setup where I’ve changed the path… It works with remote DB because wp-config is just grabbing the remote DB details. But cant connect to the local one because LOCAL things the wp-config is inside a folder I’ve deleted.
I haven’t tested this scenario, but you could try creating a /public folder and just put the .wp-config file in there. In my experience, LocalWP is looking for this directory for it and this works for me with Bedrock configuration.
There’s probably not a good way of doing this. You might be able to get the WordPress site configured so that you can access it in a browser, but it will always be a fairly fragile setup.
I’d consider what benefits you’re getting from this level of customization and either use the defaults that Local uses, or explore a different tool that allows (and requires!) a much more hands-on approach to sys-admin.
The likely reason that re-creating the public folder doesn’t work, is that that reference is gone from the running instance of NGINX.