Azure Web App - Extension-less URL issues

I’m trying to do validate site ownership in Azure Web App (configured for .net), so I’ve created the folder “/webroot/.well-known/acme-challenge” but cannot get azure to serve up the extensionless file. If I add a .txt to the end of the file, Azure will serve it up.

I’ve read every article and post out there and nothing seems to work.

Here is what my web.config looks like in that folder.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <remove fileExtension="." />
            <mimeMap fileExtension="." mimeType="application/octet-stream" />
        </staticContent>
    </system.webServer>
</configuration>

Any help will be appreciated.

Hi Troy,

Have you tried this variant ?

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
     <system.webServer>
         <staticContent>
             <mimeMap fileExtension=".*" mimeType="text/json" />
         </staticContent>
     </system.webServer>
 </configuration>

It appears to have been confirmed to work for Let’s Encrypt specifically.

Sorry for the late reply. Yes, I’ve tried this as well, and no go…if I add an extension my files I can serve it up, but if I try to go extension less, no go…argh.
troyfulton | Director of Research & Development

KYA Media | 4833 Front Street B207 Castle Rock, CO 80104
877.399.6977 x700 office | 303.378.5040 mobile

I figured it out, my CMS was interfering…I had to exclude /.well-known from my CMS.

troyfulton | Director of Research & Development

KYA Media | 4833 Front Street B207 Castle Rock, CO 80104
877.399.6977 x700 office | 303.378.5040 mobile

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.