Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save steveculshaw/b35d82c54ce8e952ff1cf676f0417fff to your computer and use it in GitHub Desktop.
Save steveculshaw/b35d82c54ce8e952ff1cf676f0417fff to your computer and use it in GitHub Desktop.
How to enable JSON and GeoJSON in IIS ...
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment