Skip to content

Instantly share code, notes, and snippets.

@jeremypage
Created April 10, 2015 10:59
Show Gist options
  • Save jeremypage/6a2dec1f6c87f9843900 to your computer and use it in GitHub Desktop.
Save jeremypage/6a2dec1f6c87f9843900 to your computer and use it in GitHub Desktop.
IIS: Enable json/geojson MIME types
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".geojson" mimeType="application/json" />
</staticContent>
<handlers>
<add name="geoJSON" path=".geojson" verb="*" modules="IsapiModule" scriptProcessor="C:\WINDOWS\system32\inetsrv\asp.dll" resourceType="Unspecified" />
<add name="JSON" path=".json" verb="*" modules="IsapiModule" scriptProcessor="C:\WINDOWS\system32\inetsrv\asp.dll" resourceType="Unspecified" />
</handlers>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment