Opening up *some* repos in Subversion on HTTPD
Posted: Mon Oct 29, 2007 1:15 pm
Edit | Nevermind, I think I have found what I was looking for.
Ok, so I have a Subversion server on my dedicated machine and I want to be able to make a handful of repos on that machine anonymously readable but authenticated writable. My current setup of repos lives in:
I call the ones I want from hitting a URL like http://www.mydomain.com/svn/<REPONAME>/trunk for example. Here are the relevent portions of my Apache config file:
These reside in the VirtualHost entry for the server I am using to serve the SVN stuff. All of this works without issue. My challenge:
At the moment, with the LimitExcept clause in there, anyone and there mother can anonymously download any of my repos. I don't want this. What I want is to allow some repos to be anonymously checked out (while still maintaining authenticated check-ins) while others still require authentication in order to check them out and in.
How do I set up the conf in this section so that, say, the repos at:
all require authentication in order to checkout and check in but the repos at:
can be publicly and anonymously checked out but still require authentication in order to check them in?
Edit | Nevermind, I think I have found what I was looking for.
Ok, so I have a Subversion server on my dedicated machine and I want to be able to make a handful of repos on that machine anonymously readable but authenticated writable. My current setup of repos lives in:
Code: Select all
/everah/svn-repos/Code: Select all
<Location /svn>
DAV svn
SVNParentPath /everah/svn-repos
AuthType Basic
AuthName "Everah Projects Code Repositories"
AuthUserFile /etc/svn-auth-file
# For any operations other then readonly type requests require validation
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>At the moment, with the LimitExcept clause in there, anyone and there mother can anonymously download any of my repos. I don't want this. What I want is to allow some repos to be anonymously checked out (while still maintaining authenticated check-ins) while others still require authentication in order to check them out and in.
How do I set up the conf in this section so that, say, the repos at:
Code: Select all
/everah/svn-repos/protected-A
/everah/svn-repos/protected-B
/everah/svn-repos/protected-BCode: Select all
/everah/svn-repos/public-A
/everah/svn-repos/public-B
/everah/svn-repos/public-CEdit | Nevermind, I think I have found what I was looking for.