Configuring Apache 2 and Subversion

Here is how I got Apache 2 and Subversion working together to provide me with WebDAV access to my repository. The OS was Red Hat Enterprise Linux ES release 3.

For Apache:

./configure --enable-dav --enable-so --with-prefix=/home/jjb/

Then, for Subversion (it’s important that you install subversion second):

./configure --prefix=/home/jjb/ --with-apxs=/home/jjb/bin/apxs

What’s great is that during the installation process Subversion will copy its apache modules into the the modules directory, and add the directives to your apache config (/home/jjb/conf/httpd.conf) for you!:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Lines I changed:

Listen 8181
ServerName lyceum.jjb.cc:8181

And lines I added:

<Location />
DAV svn
SVNPath /var/svn/
AuthType Basic
AuthName “Lyceum Subversion Repository”
AuthUserFile /home/jjb/lyceumhttp
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>

Then to start the server: /home/jjb/bin/apachectl start

1 Response to “Configuring Apache 2 and Subversion”


  1. 1 Jeff

    Good info, John. I’ll have to stop back here when I pop in Apache 2.

Leave a Reply




Close
Powered by ShareThis