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

How can I configure the subversion server to hide the full repository path from the outside world?

For example, the repository lives under /home/svn/foobar/ ... I want to access it via ssh as svn+ssh://

Thank you in advance

share|improve this question
up vote 2 down vote accepted


Reading carefully through the official SVN documentation I have found that when accessing subversion over svn+ssh -- then a separate svnserve process is spawned for every connection. Thus the trick is to

  1. Rename svnserve to svnserve.bin
  2. Create a file called svnserve
  3. Add the following to its contents


exec /usr/bin/svnserve.bin -r /home/svn "$@"

Thus the wrapper will be called everytime a server instance is needed. It will in turn init the server with a new root path.

Piece of cake!

share|improve this answer

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.