title: Serving static content under umbraco (via IIS)
body: <p>I have an Umbraco site on the root. It's working fine.</p>
  
  <p>I need to be able to serve static (not ASP.NET) content from IIS, eg /foo. (/foo maps to a different folder structure than the main app, eg:</p>
  
  <pre><code>www.example.com     -&gt; d:\sites\example.com
  www.example.com/foo -&gt; d:\sites\static\foo
  www.example.com/bar -&gt; d:\sites\static\bar
  </code></pre>
  
  <ul>
  <li><p>I can setup an IIS application, but then I inherit the parent applications web.config, and as this is static content, it has none of the dlls etc needed (and shouldn't have them!)</p></li>
  <li><p>I can setup an IIS virtual directory, and add in the various bits into the web.config to tell Umbraco NOT to use the folder (umbracoReservedUrls, umbracoReservedPaths). This works, however it is still running as the main ASP.NET application, and I'd much prefer it to be only static (ie, no .NET runtime allowed)</p></li>
  </ul>
  
  <p>Neither is ideal, as we may have a few of these, so will need to script all the creation. Editing 4 web.config files (in a web cluster) isn't ideal.</p>
  
  <p>What I'd like is:</p>
  
  <ul>
  <li>Make a virtual directory (or app) pointing to the right place. Tell IIS to serve it up as static content. If I have to drop a web.config into the folder (/foo), telling it to not load anything at all, that'd be fine (I can then use a non-.NET app pool)</li>
  </ul>
  
  <p>Everything I search for comes up with a "nope, can't be done". Did I miss something?</p>
  
  <h3>[edit]</h3>
  
  <p>Just to clarify, I'm not needing a CDN — we have one. I just want to have /foo to be it's own folder, with a bunch of html/css/images (eg /foo/index.html, /foo/images/logo.png), which are served up to the user, but not via umbraco — just via IIS.</p>