How-to: Nginx configuration to enable ACME Challenge support on all HTTP virtual hosts

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 :slight_smile: