Thread: ASP.NET/IIS Separate config file for sections of web config

IIS Separate config file for sections of web config

Storing URL rewrite mappings in a separate file
<system.webServer>
  <rewrite>
    <rewriteMaps configSource="rewritemaps.config" />
    <rules configSource="rewriteRules.config" />
  </rewrite>
</system.webServer>

In addition you can move quite a few configuration sections to their own files:


<appSettings configSource="appSettings.config" />
<connectionStrings configSource="connectionStrings.config"/>
<pages configSource="pages.config"/>


source