Hi, I have a Virtual machine at xxx.co.uk with Debian Lenny and Apache2. I am trying to install SVN and have been following this guide:
http://wiki.slicehost.com/doku.php?id=install_and_setup_apache_with_ssl_and_subversion
The part where I get stuck is the virtual hosts. I have tried reading loads of guides/posts on this but everybody seems to do it a different way httpd.conf/apache2.cong/sites-enabled. Some say its an issue with DNS some say DNS doesn't matter its all on Pache side. I am just really confused.
Well I have installed SVN and http://example.com/websites as a quick fix inside dav_svn.conf file:
<Location /websites>
DAV svn
SVNPath /var/svn/websites
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# Required authentication
Require valid-user
# Require encryption
#SSLRequireSSL
</Location>
So I next I create a file in /etc/apache2/sites-available/svn.example.com
NameVirtualHost xxx.co.uk:80
<VirtualHost xxx.co.uk:80>
ServerAdmin webmaster@xxx.co.uk
#SSLEngine On
#SSLCertificateFile /etc/apache2/ssl/apache.pem
<Location /websites>
DAV svn
SVNPath /var/svn/websites
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# Required authentication
Require valid-user
# Require encryption
#SSLRequireSSL
</Location>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
$ sudo a2ensite svn.example.com
Can anybody shed any light on this? What am I missing? thanks very mcuh for any help people may be able to give.