Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 to create a second virtual host for SVN repositories who are passed to SSL?

I passed only one SVN repository to SSL (not others) by using SSLRequireSSL: SSLRequireSSL (... snip all the SVN config ...)

Now, I have to create a second virtual host for ssl.

Version SVN server: 1.6.4 Great thanks.

share|improve this question
Can you be more specific? What do you mean by 'pass'? Does… help? – ptman Mar 16 '10 at 17:50

In my mind you have to do something like this:

  1. Lets say you have two paths for your repositories:

/var/lib/svn-secure for the repos you want to work over ssl

<Directory /var/lib/svn-secure>
   (... snip all the SVN config ...)

/var/lib/svn for the repos you do not care if they are over ssl

<Directory /var/lib/svn>
   (... snip all the SVN config ...)

then you create two virtual hosts, one over ssl and the other plain text. and put the locations in the respective ones, the SSLRequireSSL will force the access to the directory to be done over over ssl or will deny the access.

Be warned, I did this from the top of my head, there might be syntax errors.

share|improve this answer
Thanks, back later to vote your answer if I succeed to... – taintedlove Mar 17 '10 at 13:02

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.