Score:1

Installing IIS URL Rewrite via .msi doesn't create appropriate sectionGroup

br flag

I am installing URL rewrite with Ansible's win_package by giving path as the MSI installer.

Subsequently I get HTTP Error 500.19 for all requests.

This seems to occur due to because I am missing <sectionGroup name="rewrite"> in applicationHost.config.

Given that URL rewrite requires this sectionGroup, why isn't it added by the installer? Am I missing something?


Here is the sectionGroup declaration which resolves the issue:

<sectionGroup name="rewrite">
    <section name="globalRules" overrideModeDefault="Deny" allowDefinition="AppHostOnly" />
    <section name="rules" overrideModeDefault="Allow" />
    <section name="outboundRules" overrideModeDefault="Allow" />
    <section name="providers" overrideModeDefault="Allow" />
    <section name="rewriteMaps" overrideModeDefault="Allow" />
    <section name="allowedServerVariables" overrideModeDefault="Deny" />
</sectionGroup>

Score:2
br flag

The sectionGroup is added by the link MSI installer on first install. However if it is inadvertently removed then neither IIS Manager nor a 'repair' install will put it back.

The MSI must be fully uninstalled and then reinstalled.

cn flag
Glad you got this solved!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.