redirect-http-to-https-site-extension
redirect-http-to-https-site-extension copied to clipboard
Causing 500.50 Rewrite Module Error on IIS with iisnode
Using this web.config:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <sessionState cookieless="true" timeout="10" /> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="false" /> <iisnode watchedFiles="web.config;*.js;config.json"/> <handlers> <clear /> <add name="iisnode" path="/server.js" verb="*" modules="iisnode" /> </handlers> <security> <requestFiltering removeServerHeader="true"> <hiddenSegments> <remove segment="bin" /> <add segment="node_modules" /> </hiddenSegments> </requestFiltering> </security> <rewrite> <rules> <clear /> <rule name="node"> <action type="Rewrite" url="/server.js" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
When the website is started it throws a 500.50 with the following output.
`
HTTP Error 500.50 - URL Rewrite Module Error.
The page cannot be displayed because an internal server error has occurred.
Website is hosted in Azure under an S2 tier.
Repro Steps:
- Create a simple website 2, add the web.config as above
- add the site extension
- turn on diagnostic logs
- start website and inspect log stream
It looks like something is using