Hi, I have an existing site on an nginx set to web/magento2/pub but I have seen in the following article you can do more customisation via the nginx directives: https://www.howtoforge.com/communit...ult-or-simple-out-of-the-box-error-500.78540/ There fore I would like to change the existing Web folder for a Subdomain (Vhost) to web/magento2 Can this be done?
The path of a vhost subdomain cannot be changed after you created it. Delete the vhost subdomain and recreate it with the new path. The thread you linked is about websites only which work differently and therefore you need that specific root directive for websites but not for vhost subdomains.