Configure Apache SSL and Subversion in Debian in 683 seconds


Mar 26 2005
(Try to read the improved Wiki Version)

(The apache2+SSL part was taken from the article Debian, Apache2 and SSL by Ian Miller)

Debian Sarge comes with an apache2 package. I thought I'd give this a go to get it working with a self signed SSL certificate. However, I had little idea of what I was doing. Eventually I worked it out - and it's easy:

apt-get install apache2
apache2-ssl-certificate

and tell it what it wants to know.

Listen 443

to /etc/apache2/ports.conf

NameVirtualHost *:443
<VirtualHost *:443>
 LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
 SSLEngine On
 SSLCertificateFile /etc/apache2/ssl/apache.pem

 ...
</VirtualHost>
/etc/init.d/apache2 restart

Try: https://hostname/


apt-get install libapache2-svn subversion subversion-tools
cd /home
mkdir svn
chown www-data svn
su www-data -c "svnadmin create svn/src"
 <Location /svn/src>
    DAV svn
    SVNPath /home/svn/src
    AuthType Basic
    AuthName "My Subversion Repository"
    AuthUserFile /home/svn/.dav_svn.passwd
    Require valid-user
 </Location>
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>
su www-data -c "htpasswd2 -c -m /home/svn/.dav_svn.passwd galactus"
su www-data -c "htpasswd2 -m /home/svn/.dav_svn.passwd ceruno"
su www-data -c "htpasswd2 -m /home/svn/.dav_svn.passwd n"
  1. Using your browser. Load https://hostname/svn/src/ in your browser. Replace hostname with your host name or ip. You will get something like:
Revision 0: /
Powered by Subversion version 1.1.3 (r12730).
  1. From the command line:
 svn --username n import checkers https://localhost/svn/src -m "initial import"
Authentication realm: <https://localhost:443> My Subversion Repository
Password for 'n':
Adding         checkers/trunk
Adding         checkers/trunk/gendelta.pl
Adding         checkers/site
Adding         checkers/branches
Adding         checkers/tags
Committed revision 1.
Revision 1: /
   * branches/
   * site/
   * tags/
   * trunk/
Powered by Subversion version 1.1.3 (r12730).

Links:

  1. Debian, Apache2 and SSL by Ian Miller
  2. Debian, Subversion et Apache 2
  3. Setting Up Subversion - blovetts personal notes
  4. An Introductory Subversion Tutorial for Unix by Faheem Mitha
  5. Version Control with Subversion - The subversion book

svnwiki $Rev: 1427 $

Hosted by www.Geocities.ws

1