Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.15 KB | None | 0 0
  1.     <handlers>
  2.        <clear/>
  3.       <!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
  4.       <add name="iisnode" path="app.js" verb="*" modules="iisnode"/>  
  5.     </handlers>
  6.     <rewrite>
  7.  <rules>
  8.     <rule name="Block Non Angular Requests" stopProcessing="true">
  9.         <!-- Block all requests that are not under the /public folder -->
  10.         <match url="public/?" negate="true" />
  11.         <action type="CustomResponse" statusCode="404"  
  12.            statusReason="Page not foundaaaaaaaaaaaaa"  
  13.            statusDescription="Page not foundxxxxxxxxx" />
  14.         <conditions logicalGrouping="MatchAll">
  15.             <!-- The root url is /ng-node -->
  16.             <!-- Let these routes through and be handled by the NodeJS Handler rule -->
  17.             <add input="{PATH_INFO}" pattern="/gamification" negate="true" />              
  18.         </conditions>
  19.     </rule>
  20.     <rule name="NodeJS Handler">
  21.         <conditions>
  22.             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True" />
  23.         </conditions>
  24.         <action type="Rewrite" url="app.js" />
  25.     </rule>
  26.     </rules>
  27.     </rewrite>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement