Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 svnbook.red-bean.com/en/1.5/… help? –  ptman Mar 16 '10 at 17:50

1 Answer 1

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>
   SSLRequireSSL
   (... snip all the SVN config ...)
</Directory> 

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

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

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

 
discard

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.