title: How to specify root (/) location in web.config?
body: <p>How does one specify root location in web.config to allow unauthenticated users access it?</p>
  
  <p>The root location is served by default.aspx, but users normally don't see default.aspx, they just see <code>http://mysite.com/</code>. </p>
  
  <p>So I've added </p>
  
  <pre><code>  &lt;location path="~/default.aspx"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*"/&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
  </code></pre>
  
  <p>Which works if user hits <code>mysite.com/default.aspx</code>, but if user hits <code>mysite.com/</code> - he is still redirected to login page.</p>
  
  <p>I've tried <code>&lt;location path="~"&gt;</code> (does not help) and also <code>&lt;location path="~/"&gt;</code>, <code>&lt;location path=""&gt;</code> (site fails completely) and could not make it work.</p>
  
  <p>Any ideas?</p>