Running basic node.js on windows hosted site Running basic node.js on windows hosted site express express

Running basic node.js on windows hosted site


I found a way to get this to work. I added this code to my web.config:

   <rewrite>      <rules>        <rule name="/">          <match url="/*" />          <action type="Rewrite" url="app.js" />        </rule>      </rules>    </rewrite> 

I'm surprised this was necessary because app.js was set to the default document. Apparently Express requires rewriting the urls instead of using the default document tags.