Jump to content

Virtual Hosts setting up SVN help please


web2works

Recommended Posts

Hi, I have a Virtual machine at bytemark.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?i...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 svn.web2works.vm.bytemark.co.uk:80
<VirtualHost svn.web2works.vm.bytemark.co.uk:80>
      ServerAdmin webmaster@web2works.vm.bytemark.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.

Link to comment
Share on other sites

Looks fine to me. I would however remove (comment out)  the NameVirtualHost line as it should already be defined somewhere amongst your configs, you might also change the VirtualHost directive to....

 

<VirtualHost *:80>

 

Where is this dav_svn.conf file you talk about firstly? You don't need it.

Link to comment
Share on other sites

Funny thing, I wrote a tutorial about this not too long ago for Debian, perhaps it will help you?

 

Setup SVN with SSL on Debian with Apache2

 

The problem could lay in the vhosts file and not having more information, such as servername inside of it. But using that you should not mess wit hthe dav_svn.conf.

 

@thorpe, the dav_svn.conf is located under /etc/apache2/mods-enabled/dav_svn.conf, everything in that file should be commented out, as the directive in the vhosts file is enough.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.