title: Azure LetsEncrypt cannot access .well-known/acme-challenge for my function
body: <p>I am trying to enable SSL for my azure function using the letsencrypt site-extension for azure as described <a href="https://github.com/sjkp/letsencrypt-siteextension/wiki/How-to-install" rel="nofollow noreferrer">here</a>. I was following the instructions in that wiki and on this <a href="https://www.hanselman.com/blog/SecuringAnAzureAppServiceWebsiteUnderSSLInMinutesWithLetsEncrypt.aspx" rel="nofollow noreferrer">website</a>.</p>
  
  <p>However, I get an error when it tries to verify the website.</p>
  
  <p>The error indicates that the acme-challenge page cannot be accessed (404).</p>
  
  <p>This is my <code>web.config</code> under <code>.well-known/</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;clear /&gt;
        &lt;add name="ACMEStaticFile" path="*" verb="*" modules="StaticFileModule" resourceType="Either" requireAccess="Read" /&gt;
      &lt;/handlers&gt;
      &lt;staticContent&gt;
        &lt;remove fileExtension="." /&gt;
        &lt;mimeMap fileExtension="." mimeType="text/plain" /&gt;
      &lt;/staticContent&gt;
    &lt;/system.webServer&gt;
    &lt;system.web&gt;
      &lt;authorization&gt;
        &lt;allow users="*"/&gt;
      &lt;/authorization&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Does anyone have any ideas on what could be going wrong?</p>