title: Svn/Apache user access "500 Internal Error" "Need AuthName" issue
body: <p>Trying to setup SVN to use HTTP, with the user/auth user access files.</p>
  
  <p>I have the following in the subversion.conf for the Apache Server:</p>
  
  <pre><code>&lt;Location /repos&gt;
    DAV svn
    SVNPath /apps/CollegeDir/CollegeRepository/
  
         AuthzSVNAccessFile /asvn/svnAccessAuthz
         AuthType Basic
  #      AuthName "Subversion Repository"
         AuthUserFile /asvn/svnUserAuthz
         Require valid-user
  #
  #   # Limit write permission to list of valid users.
  #   &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;
  #      # Require SSL connection for password protection.
  #      # SSLRequireSSL
  #
  #      AuthType Basic
  #      AuthName "Authorization Realm"
  #      AuthUserFile /path/to/passwdfile
  #      Require valid-user
  #   &lt;/LimitExcept&gt;
  &lt;/Location&gt;
  </code></pre>
  
  <p>I have the following in the user/password auth files (each file is set
  to apache/apache/766 as a test)</p>
  
  <pre><code>/asvn/svnAccessAuthz
  [/]
  * = rw
  
  [/repos]
  * = rw
  
  [/repos/trunk]
  * = rw
  
  [repos:/]
  * = rw
  
  [repos:/trunk]
  * = rw
  
  [/trunk]
  * = rw
  
  
  
  /asvn/svnUserAuthz
  bill:$apr1$NsGWbE/9$695MXkrm8x06hMabC3Hu71
  
  the svnUserAuthz file was create using:
   htpasswd -mb /etc/svnUserAuthz  bill qqqqqq
  </code></pre>
  
  <hr>
  
  <p>When I try to access the repos, using the following i get the Internal
  500 error, with the "Need Authname /foo" in the apache err logs.</p>
  
  <pre><code>svn list --username bill --password qqqqqq http://192.168.1.45/repos
  svn: Server sent unexpected return value (500 Internal Server Error)
     in response to OPTIONS request for 'http://192.168.1.45/repos'
  </code></pre>
  
  <p>the error_log is:</p>
  
  <pre><code> [Thu Mar 17 21:08:38 2011] [error] [client 192.168.1.45] need AuthName: /repos/
   [Thu Mar 17 21:08:43 2011] [error] [client 192.168.1.45] need AuthName: /repos/trunk
  </code></pre>
  
  <p>if I comment out the</p>
  
  <pre><code>#       AuthzSVNAccessFile /asvn/svnAccessAuthz
  #       AuthType Basic
  #       AuthName "Subversion Repository"
  #       AuthUserFile /asvn/svnUserAuthz
  #       Require valid-user
  </code></pre>
  
  <p>then I can easily access the repos, so I'm screwing up something with
  the user/passwd access process.</p>
  
  <p>i've set the access on the /asvn and the svn files to be:</p>
  
  <pre><code> chmod 766
   chown apache.apache
  </code></pre>
  
  <p>so the files are completely accessible to the apache server...</p>
  
  <p>I've tried numerous combinations in the auth file to try to get it to
  allow access for a test user, but I'm completely stumped.</p>
  
  <p>Thoughts/comments/pointers would be greatly appreciated.</p>
  
  <p>Thanks</p>