HTTP+SVN+SSL VPS Server
Hello, setting up source code control is less than exciting. Here's a quick way to do it.
Adapted from a great article: http://alephzarro.com/blog/2007/01/07/installation-of-subversion-on-ubun...
# setup
apt-get update
apt-get upgrade
apt-get install aptitude nano
# svn and apache
aptitude install subversion libapache2-svn apache2 ssl-cert
# ssl
a2enmod ssl
# ssl cert
mkdir /etc/apache2/ssl
/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
#virtual host
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/$SITENAME
nano /etc/apache2/sites-available/$SITENAME
#Change:
#NameVirtualHost *:443
#<VirtualHost *:443>
#Add:
#SSLEngine on
#SSLCertificateFile /etc/apache2/ssl/apache.pem
#SSLProtocol all
#SSLCipherSuite HIGH:MEDIUM
#enable site
a2ensite $SITENAME
apache2ctl restart
# create repository
mkdir /var/svn
svnadmin create /var/svn/$REPOS
chown -R www-data:www-data /var/svn/$REPOS
chmod -R g+ws /var/svn/$REPOS
# create apache/svn users - prompts for password
htpasswd -c -m /etc/apache2/dav_svn.passwd $USER
# enable webDAv+SVN
nano /etc/apache2/mods-available/dav_svn.conf
#Add to bottom:
# <location />
# DAV svn
# SVNParentPath /var/svn
# AuthType Basic
# AuthName "Subversion Repository"
# AuthUserFile /etc/apache2/dav_svn.passwd
# Require valid-user
# SSLRequireSSL
# </location>
# Adapted from:
# http://alephzarro.com/blog/2007/01/07/installation-of-subversion-on-ubun...