web2works Posted March 17, 2010 Share Posted March 17, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/195554-virtual-hosts-setting-up-svn-help-please/ Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/195554-virtual-hosts-setting-up-svn-help-please/#findComment-1027570 Share on other sites More sharing options...
premiso Posted March 17, 2010 Share Posted March 17, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/195554-virtual-hosts-setting-up-svn-help-please/#findComment-1027662 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.