Hi. I've used your workaround a thousand times. I've now moved to a more all-inclusive approach modifying this line [with the ADDITION comment] in /etc/nginx/common/locations.conf
only once when installing ee on a new server:
# Security settings for better privacy
# Deny hidden files
location ~ /\.well-known {
allow all;
root /var/www/$http_host/htdocs/; #ADDITION
}
This way the only change I have to make when I do ee site edit newdomain.com
is the webroot, without having to go back to this howto, copy the location block, and paste it in. I know the locations.conf file will be overwritten if I update ee, but it's worth it for me until they figure this thing out officially.
Also, I agree adding include common/wpcommon.conf;
might be a good idea as you were saying.
Thank you for your work.