Run NodeJs on iis TutorialsteemCreated with Sketch.

in #nodejs6 years ago (edited)

install :

  1. nodejs -
  2. iis -
  3. iisnode -
  4. URL Rewrite -

setup :

  1. add your site to iis and map it to the folder of the website

  2. add web.config file to the folder of the website

    the web.config file will contain:
    <configuration> <system.webServer> <handlers> <add name="iisnode" path="app.js" verb="*" modules="iisnode" /> </handlers> <rewrite> <rules> <rule name="myapp"> <match url="/*" /> <action type="Rewrite" url="app.js" /> </rule> </rules> </rewrite> </system.webServer> </configuration>

if your start nodejs file is not app.js then change it


1 more thing is missing , add <iisnode enableXFF="true" /> to <system.webServer> tag

Coin Marketplace

STEEM 0.19
TRX 0.08
JST 0.023
BTC 27739.11
ETH 1906.61
USDT 1.00
SBD 2.17