redirect-http-to-https-site-extension icon indicating copy to clipboard operation
redirect-http-to-https-site-extension copied to clipboard

Causing 500.50 Rewrite Module Error on IIS with iisnode

Open click2install opened this issue 7 years ago • 1 comments

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:

  1. Create a simple website 2, add the web.config as above
  2. add the site extension
  3. turn on diagnostic logs
  4. start website and inspect log stream

click2install avatar Mar 20 '17 00:03 click2install

It looks like something is using and I had blocked in the xdt transform because I was afraid it would allow someone to accidentally remove the redirection. Something recently changed, though, and I had to remove locking of attributes to make the extension start working again. Can you try upgrading to the latest version of this extension and see what happens now?

gregjhogan avatar Oct 22 '17 17:10 gregjhogan