Reputation: 1180
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.
Upvotes: 0
Views: 450
Reputation: 1180
Did it :)
I had to move the two following modules :
located in the DirectoryOfInstallationOfSVN\bin
to DirectoryOfInstallationOfApache\Modules
and copied the DLLs files from the first directory to DirectoryOfInstallationOfApache\bin
.
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>
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.
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.
Upvotes: 1
Reputation: 97282
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
Upvotes: 2