I have an SVN repository that is configured to use Basic authentication through Apache httpd to limit access to specified users. To support a continuous integration server (and other read-only services) running on the same server I would like to allow anonymous read access from localhost.
After going some research (i.e. Googling) I came up with trying the following Apache configuration:
<Location /svn>
DAV svn
SVNParentPath /var/svn
AuthType Basic
AuthName "SVN"
AuthBasicProvider external
AuthExternal pwauth
#Only allow specified users to login to SVN
require user UID1
require user UID2
require user UID3
#Allow anonymous reads from localhost
<LimitExcept GET PROPFIND OPTIONS REPORT>
Order allow,deny
Allow from 127.0.0.1
</LimitExcept>
</Location>
When I try to do an anonymous checkout from the local server I still get prompted for a password (in this case for the root user).
Any thoughts or suggestions as to what I might be doing wrong or how I should properly configure things to allow this?
My original attempt at configuring anonymous read access is based off of the information on this page.
I was never able to find a solution that would allow anonymous read access from localhost only and require authentication for both read and write from any remote system.
Ultimately I created a username/password for the application needing to authenticate.
This wasn't the ideal solution... but it should work fine.