Skip to content

Instantly share code, notes, and snippets.

@mitchdenny
Last active December 14, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchdenny/5167489 to your computer and use it in GitHub Desktop.
Save mitchdenny/5167489 to your computer and use it in GitHub Desktop.
Example code to support executing Node.js in a particular sub-folder of an ASP.NET web-site.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="Node">
<system.webServer>
<handlers>
<add name="iisnode" path="*.js" verb="*" modules="iisnode" />
</handlers>
<defaultDocument enabled="true">
<files>
<add value="server.js" />
</files>
</defaultDocument>
</system.webServer>
</location>
<!-- Don't forget your other configuration settings! -->
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment