[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff 'path not found' and 'Error reading spooled REPORT request response'

From: Dan Poirier <poirier_at_pobox.com>
Date: Fri, 22 Jan 2010 08:07:42 -0500

>>>>> "Bert" == Bert Huijben <bert_at_qqmail.nl> writes:
    Bert> At which level in this url is your repository located?

/, as you guessed.

    Bert> Can you quote the relevant porting from your apache config?
    Bert> (Most likely the <Location> block).

Here you go. Maybe I'm getting too clever with mod_rewrite to try to
get both subversion and viewvc served at the root url?

####### Begin extract from httpd.conf ##########

<VirtualHost x.x.x.x:443>
# omitted logging, ssl config
RewriteEngine on

# VIEWVC
# Viewvc uses GET, while SVN uses other things
RewriteCond %{REQUEST_METHOD} ^GET$
# Okay, handle this with viewvc
RewriteRule ^/(.*) /home/userid/viewvc/bin/cgi/viewvc.cgi/$1 [H=cgi-script,L]

<Directory /home/userid/viewvc/bin/cgi>
Options +ExecCGI +Includes
</Directory>
AddOutputFilterByType INCLUDES text/html

<Location />
# for viewvc:
Options +Includes

# SVN - assume anything that gets past the Rewrite stuff is svn
DAV svn
SVNPath /home/userid/svnrepository
AuthzSVNAccessFile /home/userid/svnrepository/conf/authz

# AUTH applies to it all the same
Order Deny,Allow
Allow from all
Satisfy All
AuthName w3
AuthType basic
AuthBasicProvider ldap file
AuthUserFile /home/userid/svnrepository/conf/svnpasswd
AuthLDAPUrl ldaps://ldapserver.com/ou=org,o=example.com?mail?sub? SSL
# Any valid LDAP id/password, or user in the svnpasswd, file gets past this part
# Then subversion will validate access to the repository itself
require valid-user
</Location>
</Virtualhost>
####### End extract from httpd.conf ##########

    Bert> My guess is that your repository is located on the root of the
    Bert> webserver and this can give some issues if not configured
    Bert> correctly. (Sometimes request are handled via mod_dav and
    Bert> sometimes via the other handlers). As /!svn is mapped on that
    Bert> root url, it has to get back in mod_dav or you get all kinds
    Bert> of strange errors.

    Bert> If you are just setting up your server I would recommend
    Bert> setting it up with a 'svn/' or 'repos/' prefix via a location
    Bert> tag as shown in most examples, as that makes the installation
    Bert> easier and better maintainable if some unrelated apache
    Bert> settings change.

Maybe this is one for the doc? Or did I just miss it in there?
Received on 2010-01-22 14:08:46 CET

This is an archived mail posted to the Subversion Users mailing list.