title: .NET: understanding web.config in asp.net
body: <p>Does anyone know of a good link to explain how to use the web.config...... </p>
  
  <p>For example, i am using forms authentication... and i notice there is a system.web and then it closed /system.web and then below configuration there are additional location tags</p>
  
  <p>here is an example, if you ntoice there is an authentication mode=forms with authorization  i presume this is the ROOT.......  It is also self contained within a system.web ....  Below this there are more location= with system.web tags....</p>
  
  <p>I have never really understand what i am actually doing..  I have tried checkign the MSDN documentation but still i don't fully understand up....</p>
  
  <p>Can anyone help?</p>
  
  <p>If you notice with my example.... everything is stored in 1 web.config... i thought the standard waas create a standard web.config and then create another web.config in the directory where i wish to protect it..???</p>
  
  <pre><code>&lt;configuration&gt;
  
       &lt;system.web&gt;
             &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /&gt;
  
             &lt;authentication mode="Forms"&gt;
          &lt;forms loginUrl="Login.aspx" defaultUrl="Login.aspx" cookieless="UseCookies" timeout="60"/&gt;
      &lt;/authentication&gt;
  
      &lt;authorization&gt;
          &lt;allow users="*"/&gt;
      &lt;/authorization&gt;
  
         &lt;/system.web&gt;
  
  
  &lt;location path="Forms"&gt;
      &lt;system.web&gt;
          &lt;authorization&gt;
              &lt;deny users="?"/&gt;
              &lt;allow users="*"/&gt;
          &lt;/authorization&gt;
      &lt;/system.web&gt;
  &lt;/location&gt;
  &lt;location path="Forms/Seguridad"&gt;
      &lt;system.web&gt;
          &lt;authorization&gt;
              &lt;allow roles="Administrador"/&gt;
              &lt;deny users="?"/&gt;
          &lt;/authorization&gt;
      &lt;/system.web&gt;
  &lt;/location&gt;
  </code></pre>