Node JS - IIS deployment support details

 Node JS - IIS deployment support details

Node JS - IIS deployment support details

node:

http://go.microsoft.com/?linkid=9784334

IISNode:

https://github.com/azure/iisnode/releases/download/v0.2.21/iisnode-full-v0.2.21-x64.msi

URLRewrite:

https://www.iis.net/downloads/microsoft/url-rewrite

web.config:

<configuration>

<system.webServer>

<handlers>

  <add name="iisnode" path="WebAPI.js" verb="*" modules="iisnode" />

</handlers>

<rewrite>

  <rules>

    <rule name="nodejs">

      <match url="(.*)" />

      <conditions>

        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

      </conditions>

      <action type="Rewrite" url="/WebAPI.js" />

    </rule>

  </rules>

</rewrite>

<security>

  <requestFiltering>

    <hiddenSegments>

      <add segment="node_modules" />

      <add segment="iisnode" />

    </hiddenSegments>

  </requestFiltering>

</security>

</system.webServer>

 </configuration>

No comments:

Post a Comment

CPU vs GPU Architecture

  CPU vs GPU Architecture CPU (Central Processing Unit) and GPU (Graphics Processing Unit) have distinct architectural differences, optimize...

Best for you