Skip to content

Instantly share code, notes, and snippets.

@anova
Created June 30, 2013 20:55
Show Gist options
  • Save anova/5896832 to your computer and use it in GitHub Desktop.
Save anova/5896832 to your computer and use it in GitHub Desktop.
Windows IIS woff & svg support. Note : <handlers> section is "kriweb" (a hosting company) spesific.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<remove name="PHP" />
<add name="PHP cgi" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\kwdata\php5.3\php-cgi.exe" resourceType="Unspecified" />
</handlers>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<validation validateIntegratedModeConfiguration="false"/>
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension=".svg" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment