title: .well-known/acme-challenge nginx 404 error
body: <p>I'm trying to verify a file upload for SSL certificate.
  The file needs to be <code>.well-known/acme-challenge/file</code></p>
  
  <p>I have successfully placed the file as above, but while accessing the same file from the web <code>http://weburl.com/.well-known/acme-challenge/file</code>, 404 error is coming up.
  When I place the same file in <code>.well-known/</code> the file can be access from the path <code>http://weburl.com/.well-known/file</code> successfully.</p>
  
  <p>My nginx configuration:</p>
  
  <pre><code>server {
          listen 80;
  
          server_name weburl.com; 
          root /var/www/html;
  
          location ~ /.well-known {
                  allow all;
          }
  
          location ~ /\.well-known/acme-challenge/ {
              allow all;
              root /var/www/html;
              try_files $uri =404;
              break;
          }
  }
  </code></pre>