Question

I've just installed SVN. I would like to know the steps for making SVN repository browsable through http in my LAN, without the need for the network administrator to open up another custom port. This is an exemple of how it should look like.
Thanks in advance.

Was it helpful?

Solution 4

Did it :)

  1. I had to move the two following modules :

    1. mod_authz_svn.so
    2. mod_dav_svn.so

located in the DirectoryOfInstallationOfSVN\bin to DirectoryOfInstallationOfApache\Modules and copied the DLLs files from the first directory to DirectoryOfInstallationOfApache\bin.

  1. After that I had to configure the httpd.conf file located at DirectoryOfInstallationOfApache\conf by adding following :

     <Location /svn>
           DAV svn
          SVNPath "path to your SVN repository goes here" (without the double quotes )
          AuthType Basic
          AuthName "Write here whatever you like"
          AuthUserFile "DirectoryOfInstallationOfApache\bin\passwd" 
          Require valid-user
    
      </Location>
    
  2. One may find some PORT related issues, you can change the port at which the Apache is Listening by modifying the #Listen command in the httpd.conf file.

  3. Finally, in order to be able to add new users, don't forget to copy the passwd file located in DirectoryOfInstallaionOfSVN\repository\conf to DierctoryOfInstallationOfApache\bin. You will be able then to add new users to SVN via cmd using :

     htpasswd -m passwd "new username goes here" (without the double quotes).
    

You will be asked to provide a password twice for the new user.

OTHER TIPS

You need to install a module to apache. On RPM/Cent OS it is mod_dav_svn Thereafter you need to configure apache VHOST to use it.

This HowTo should help you set it up on Cent OS/Red hat

This one for Ubuntu

In order to have "SVN repository browsable through http" you must to install Apache with SVN-related modules and configure it properly.

More easy way for Windows-case will be

  • Install VisualSVN Server
  • In server settings use for "SVN Parent Directory" parent directory of your existing repository

Install SVN via apache so you use http rather than svn protocol, then its best to install one of the many viewer programs that allow you to browse the repository with a nice UI. For example, WebSVN

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top