Run NodeJs on iis Tutorial
install :
- nodejs - https://nodejs.org/en/download/
- iis - https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/installing-iis-8-on-windows-server-2012
- iisnode - https://github.com/tjanczuk/iisnode/releases
- URL Rewrite - https://www.iis.net/downloads/microsoft/url-rewrite
setup :
add your site to iis and map it to the folder of the website
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:
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.