Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there are way to run a local svn server on a Mac (OS X 10.6.x) such that no ports are open and accessible from outside that Mac?

If so, exactly where do any configuration scripts of any kind need to go?

share|improve this question

migrated from Mar 9 '11 at 22:14

This question came from our site for professional and enthusiast programmers.

Why bother? If your goal a personal source repository, there are vastly better and easier to configure decentralized options. Mercurial, git, Fossil, monotone, ... – mikerobi Mar 9 '11 at 21:59
So how do I migrate this question to programmers.stackexchange, if that's the more suitable QA forum? (But a search showed more svn questions here than there.) – hotpaw2 Mar 9 '11 at 22:13
By "outside" do you mean outside that computer, or outside the network? – JeffG Mar 9 '11 at 22:49
up vote 4 down vote accepted

You can use subversion repositories with the file protocol tool, something like file:///opt/svn/my_repo. That way, you can use your SVN repos locally without the need for an actual server.

Another alternative could be to setup an Apache with mod_dav_svn and let it listen only to localhost (

share|improve this answer

I think that by default when you install SVN it is only accessible from the local box as it does not have a built in networking infrastructure. You usually have to tie it into an apache config or tunnel to the box with SSH.

So you should be able to install it without a worry of networking. If your install automagically installs the apache piece, you should be able to disable it in your apache conf.

share|improve this answer
You would want to use the commandline interface at this point which is really easy to use. – Mike Mar 9 '11 at 22:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.