For this directive:
location /.well-known {
root /var/www/html;
allow all;
}
If the URL is http://example.com/.well-known/a.html
, it transforms to /var/www/html/.well-known/a.html
, not to /var/www/html/a.html
. Alternatively, see the alias
directive.