Skip to content

Instantly share code, notes, and snippets.

@incanus
Created July 27, 2011 06:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incanus/1108777 to your computer and use it in GitHub Desktop.
Save incanus/1108777 to your computer and use it in GitHub Desktop.
This is my /etc/apache2/other/svn.conf for making Subversion play with the Mac's system Apache. On Lion, I had to install CollabNet's Subversion package (the 10.6 one) to get stuff into /opt.
LoadModule dav_svn_module /opt/subversion/lib/svn-apache/mod_dav_svn.so
LoadModule authz_svn_module /opt/subversion/lib/svn-apache/mod_authz_svn.so
<Location "/svn">
DAV svn
SVNParentPath /usr/local/svnroot
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/other/htpasswd
Require valid-user
</Location>
@incanus
Copy link
Author

incanus commented Jul 27, 2011

Couple other notes that wouldn't fit:

  • Apple no longer supplies these Apache modules. At all.
  • None of this collides with Apple's stuff as that is all in /Developer.
  • I installed the CollabNet package via Pacifist manual extraction to /opt as root, since Installer.app wanted me to be on 10.6.
  • The only stuff you miss via the pre- and post-flight installer scripts are related to Java.
  • You want /usr/local/svnroot to be owned recursively by _www:_www. Just put your repos in there.
  • Browse to http://localhost/svn to see your repos.
  • If you want to hide your /opt from Finder (or any other folder for that matter): sudo chflags hidden /opt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment