title: How to host Node JS app on IIS 10 with Windows Server 2019
body: <p>I have configured all those things which are necessary for iisnode. But when i browse the site through <a href="http://localhost/Backend" rel="nofollow noreferrer">http://localhost/Backend</a> (Backend is a site name hosted on iis) then nothing is being happened and page keeps loading.</p>
  
  <p><strong>My web.config:</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;handlers&gt;
          &lt;add name="iisnode" path="index.js" verb="*" modules="iisnode" /&gt;
      &lt;/handlers&gt;
      &lt;rewrite&gt;
          &lt;rules&gt;
                  &lt;rule name="nodejs"&gt;
                      &lt;match url="(.*)" /&gt;
                      &lt;conditions&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="true" negate="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="/index.js" /&gt;
                  &lt;/rule&gt;
          &lt;/rules&gt;
      &lt;/rewrite&gt;
      &lt;security&gt;
      &lt;requestFiltering&gt;
          &lt;hiddenSegments&gt;
              &lt;add segment="node_modules" /&gt;
          &lt;add segment="iisnode" /&gt;
          &lt;/hiddenSegments&gt;
      &lt;/requestFiltering&gt;
      &lt;/security&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>