Skip to content

Instantly share code, notes, and snippets.

@mattjcowan
Created January 16, 2017 17:46
Show Gist options
  • Save mattjcowan/21e915013215d02e3bfc9087bb30b4c0 to your computer and use it in GitHub Desktop.
Save mattjcowan/21e915013215d02e3bfc9087bb30b4c0 to your computer and use it in GitHub Desktop.
letsencrypt .well-known acme-challenge (static file issue resolved when using ServiceStack)
<?xml version = "1.0" encoding="UTF-8"?>
<configuration>
<!-- PUT THIS FILE INSIDE THE .well-known directory to re-instate static file recognition -->
<system.webServer>
<staticContent>
<mimeMap fileExtension = ".*" mimeType="text/json" />
</staticContent>
<handlers>
<clear />
<add name="StaticFile" path="*." verb="*" type="" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
</handlers>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment