The above creates the file ( -c) and uses SHA-1 for storing the password ( -s). # htpasswd -cs /home/svn/.svn-auth-file USER_NAME sniffing, but at this point, I do not have a need for it. htdigest would provide even more security vs. Again, because of SSL, I do not worry as much about password sniffing. This is either an htpasswd, or htdigest file.
The last bit grants read/write permission of the REPO_NAME repository to the user USER_NAME. The REPO_NAME:/ section inherits permissions from those above, so anon users have read only permission to it. Any access above and beyond read only will be prompted for a user/pass by apache AuthType Basic. The * in the / section is matched to anonymous users. LoadModule socache_shmcb_module modules/mod_socache_shmcb.so To make sure the SSL settings get loaded, uncomment the SSL configuration line in /etc/httpd/conf/nf so it looks like this: Include the following inside of a virtual host directive:ĪuthzSVNAccessFile /home/svn/.svn-policy-file # openssl req -new -x509 -keyout server.key -out server.crt -days 365 -nodesĪdd the following to /etc/httpd/conf/extra/nf (or to /etc/httpd/conf/extra/nf if you are not using ssl). SSL for SVN access has a few benefits, for instance it allows you to use Apache's AuthType Basic, with little fear of someone sniffing passwords. LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule dav_fs_module modules/mod_dav_fs.so
#CONFIGURE SVN APACHE INSTALL#
Install Apache HTTP Server as described in its article.īesides Apache, you will only need to install the subversion package.Ĭreate a directory for your repositories:Įnsure the following are listed.if not, add them (you will typically have to add just the last two), they must be in this order: At some point you should be able to use any WebDAV interface to update files in the repository.
Why use Apache for Subversion? Well, quite simply, it provides features that the standalone svnserve does not have.
#CONFIGURE SVN APACHE HOW TO#
The goal of this how to is to setup Subversion, with Apache.