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
1 more thing is missing , add
<iisnode enableXFF="true" /> to <system.webServer>
tagDownvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit