title: Apache Access Control
body: <p>I'm trying to configure Apache to allow read only access and ask for user to write to a SVN repository when you are coming from the local network (10.*) but not allow any access unless logged in when coming from external network.</p>
  
  <p>I sort of understand how the Order, Deny, Allow, and Limit directives work but I do not know if it is possible/how to combine them to achieve the desired result.</p>
  
  <pre><code>&lt;Location /svn&gt;
    # Set mod_dav_svn settings
    DAV svn
    SVNListParentPath on
    SVNParentPath /mnt/svn
    AuthzSVNAccessFile /mnt/svn/.authz
  
    # Set Authentication
    AuthType Basic
    AuthName "Auth Realm"
    AuthUserFile /mnt/svn/.htpasswd
  
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 10.0.0.0/8
  
    &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;
      Require valid-user
    &lt;/LimitExcept&gt;
    Satisfy Any
  &lt;/Location&gt;
  </code></pre>
  
  <p>I know this will allow all access to any local traffic but ask for login when trying to write from external traffic. This is close to what I want. Any help or suggestions on what to read are greatly appreciated.</p>