Skip to content

Instantly share code, notes, and snippets.

@garth
Created April 24, 2012 08:19
Show Gist options
  • Save garth/2477814 to your computer and use it in GitHub Desktop.
Save garth/2477814 to your computer and use it in GitHub Desktop.
Configure IIS for iisnode
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="app.js" verb="*" modules="iisnode" />
</handlers>
<!-- stop IIS from replacing non 200 response bodies -->
<httpErrors existingResponse="PassThrough" />
<!-- send all incoming requests to nodejs -->
<rewrite>
<rules>
<rule name="appjs">
<match url="/*" />
<action type="Rewrite" url="app.js" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment