convertball avatar

Run NodeJs on iis Tutorial

convertball

Published: 01 Nov 2017 › Updated: 01 Nov 2017Run NodeJs on iis Tutorial

Run NodeJs on iis Tutorial

install :

  1. nodejs - https://nodejs.org/en/download/
  2. iis - https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/installing-iis-8-on-windows-server-2012
  3. iisnode - https://github.com/tjanczuk/iisnode/releases
  4. URL Rewrite - https://www.iis.net/downloads/microsoft/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

Leave Run NodeJs on iis Tutorial to:

Written by

Read more #nodejs posts


Best Posts From convertball

We have not curated any of convertball's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From convertball