I use the following in a global file that is loaded by all sites and it works 100%
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
As pointed out to me by @serverco the line alias /var/www/acme-challenge/;
is needed as per @tomwald 's answer above