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.

Hi web2works,
For it to work over the internet, the virtual host name should resolve. So, you will need to get the dns fixed.
However, for testing your SVN setup, I would suggest that you update the "/etc/hosts" file in your debian system to point the "hostname" to localhost and verify checkout / commit functionalities. You should be able to create a code repository in the SVN area and then test it out and you should be able to use "svn.web2works.vm.bytemark.co.uk" as the hostname when using your SVN.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.