Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <handlers>
- <clear/>
- <!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
- <add name="iisnode" path="app.js" verb="*" modules="iisnode"/>
- </handlers>
- <rewrite>
- <rules>
- <rule name="Block Non Angular Requests" stopProcessing="true">
- <!-- Block all requests that are not under the /public folder -->
- <match url="public/?" negate="true" />
- <action type="CustomResponse" statusCode="404"
- statusReason="Page not foundaaaaaaaaaaaaa"
- statusDescription="Page not foundxxxxxxxxx" />
- <conditions logicalGrouping="MatchAll">
- <!-- The root url is /ng-node -->
- <!-- Let these routes through and be handled by the NodeJS Handler rule -->
- <add input="{PATH_INFO}" pattern="/gamification" negate="true" />
- </conditions>
- </rule>
- <rule name="NodeJS Handler">
- <conditions>
- <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True" />
- </conditions>
- <action type="Rewrite" url="app.js" />
- </rule>
- </rules>
- </rewrite>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement