1

I'm trying to configure my subversion server using apache2, mod_dav_svn and a basically digest authenticaton (for now). I've setup the subdomain svn.example.com to serve the repos and created the virtualhost conf like this:

<VirtualHost *:80> ServerAdmin [email protected] ServerName svn.example.com <Location /> DAV svn # Automatically map any "/foo" URL to repository /var/svn/repos/foo SVNParentPath /var/svn/repos # List repositories if viewed from a web browser SVNListParentPath on # Authentication: Digest AuthName "Private Area" AuthType Digest AuthUserFile /etc/svn-auth.htdigest # Authoriztion: Authenticated users only Require valid-user </Location> </VirtualHost> 

This conf file (svn.example.com) resides inside apache2's sites-available directory, as well inside sites-enabled.

The last thing, I created the auth user file using htdigest.

At this step I wanted to test the setup. But each time I open svn.example.com in a browser all I get is a blank page. I don't know what is wrong. I checked the apache access/error log files, but there's nothing there that could help.

Any thoughts ?

2 Answers 2

0

I bet there must be something in the error_log. Make sure that Apache has access permission on the SVN root directory:

# chown -R www-data:www-data /var/svn/repos 
3
  • I already chowned the repos directory with that user/group. In error_log there are only notices from when I restarted apache. Nothing else. Commented Oct 1, 2011 at 18:01
  • Test Apache syntax apachectl configtest, set LogLevel to debug and add a ErrorLog directive for your virtual host, reproduce this problem to see if you have something in log file. Commented Oct 2, 2011 at 1:43
  • configtest says Syntax is OK. I added debug LogLevel and ErrorLog and the only lines in error.log are [notice] caught SIGTERM, shutting down and [notice] Apache/2.2.16 (Ubuntu) DAV/2 SVN/1.6.12 configured -- resuming normal operations. If it matters, I commented the lines with authentication and authorization but nothing changed :|. I don't know, could be something with apache ? It's a fresh install, maybe I forgot to configure something properly. ` Commented Oct 2, 2011 at 5:46
0

I figured out what it was. First of all I had an error in my file zone, instead of a CNAME entry for the subdomain, there was an A record.

After that, I enabled the auth_digest module and everything is working fine.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.