title: How to split web.config?
body: <p>I want to split web.config and take these settings in a external file.</p>
  
  <pre><code>&lt;customErrors mode="Off" defaultRedirect="~/Home/ErrorPage"&gt;
    &lt;error statusCode="403" redirect="~/Home/ErrorPage"/&gt;
    &lt;error statusCode="404" redirect="~/Home/ErrorPage"/&gt;
  &lt;/customErrors&gt;
  
  &lt;system.net&gt;
    &lt;mailSettings&gt;
      &lt;smtp deliveryMethod="Network" from="noreplay@company.no"&gt;
        &lt;network host="smtp.company.com" port="25" password="" userName=""/&gt;
      &lt;/smtp&gt;
    &lt;/mailSettings&gt;
  &lt;/system.net&gt;
  </code></pre>
  
  <p>I use </p>
  
  <pre><code>    &lt;appSettings file="my.config"/&gt; 
  </code></pre>
  
  <p>to have MY settings outside.</p>
  
  <p>But what about the standard settings?</p>