Skip to content

Instantly share code, notes, and snippets.

@tvvignesh tvvignesh/iisnode.md
Last active May 18, 2019

Embed
What would you like to do?
Using IISNode

Webconfig file when using IIS Node - https://github.com/Azure/iisnode

<configuration>
  <system.webServer>

    <!-- indicates that the hello.js file is a node.js application 
    to be handled by the iisnode module -->

    <handlers>
      <add name="iisnode" path="server.js" verb="*" modules="iisnode" />
    </handlers>
    
	<rewrite>
      <rules>
        <rule name="aviationmlapi">
          <match url="/my/route/*" />
          <action type="Rewrite" url="server.js" />
        </rule>
      </rules>
    </rewrite>

  <iisnode watchedFiles="*.js;*.json;*.config;*.js.map;" />
	
  </system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.