Apace/WebDAV for Subversion on OpenSolaris

 

I have a Solaris Zone running Subversion and wanted to enable WebDAV for the repository.

I couldn’t find a good set of instructions for doing this anywhere, so this is what I put together.

Install Apache

As root…

pkg install SUNWapch22
svcs apache22
svcadm enable apache22

Load the Apache svn modules

cd /etc/apache2/2.2/conf.d

edit modules-32.load
add
LoadModule dav_svn_module libexec/mod_dav_svn.so
LoadModule authz_svn_module libexec/mod_authz_svn.so

cd ..


Edit httpd.conf
Add , assuming your repository is in /svn/repo1. Adjust as needed.

<Location /svn>
DAV svn
SVNPath /svn/repo1
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/2.2/svn-passwd
Require valid-user
</Location>

htpasswd -c /etc/apache2/2.2/svn-passwd sean

svcadm disable apache22
svcadm enable apache22

 

Browse to http://<zone ip address>/svn/repo1

Explore posts in the same categories: Uncategorized

Comment: