Skip to content

Instantly share code, notes, and snippets.

View steveculshaw's full-sized avatar

Steve Culshaw steveculshaw

  • Retired
  • Thatcham, Berkshire, UK
  • 05:44 (UTC -12:00)
  • X @steveculshaw
View GitHub Profile
@steveculshaw
steveculshaw / gist:b35d82c54ce8e952ff1cf676f0417fff
Created June 28, 2016 12:18
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>