Allow /.well-known/acme-challenge but deny dot files
    nanaya 
    me at myconan.net
       
    Tue Apr  4 08:53:17 UTC 2017
    
    
  
Hi,
On Tue, Apr 4, 2017, at 17:45, Anoop Alias wrote:
> You can put it above the other deny location
> # Allow "Well-Known URIs" as per RFC 5785
> location ~* ^/.well-known/ {
> allow all;
> }
> 
Or use "^~" because it's of higher precedence compared to "~".
> If the longest matching prefix location has the “^~” modifier then regular expressions are not checked. 
http://nginx.org/r/location
location ^~ /.well-known/ { }
    
    
More information about the nginx
mailing list