Skip to content

Instantly share code, notes, and snippets.

@giridharprakash
Created February 14, 2017 15:15
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 giridharprakash/eed30bf373b7a112e5a73ac2c6480bb9 to your computer and use it in GitHub Desktop.
Save giridharprakash/eed30bf373b7a112e5a73ac2c6480bb9 to your computer and use it in GitHub Desktop.
deploy node web application to IIS. this is blog post
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="server/index.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="sample">
<match url="api/*" />
<action type="Rewrite" url="server/index.js" />
</rule>
</rules>
</rewrite>
<defaultDocument enabled="true">
<files>
<add value="new/index.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment