Apache2 Enabling Includes module causes svn access to quit working
Posted
by Matthew Talbert
on Server Fault
See other posts from Server Fault
or by Matthew Talbert
Published on 2010-01-31T20:48:51Z
Indexed on
2010/03/09
4:08 UTC
Read the original article
Hit count: 607
I have dav_svn installed to provide http access to my svn repos. The url is directly under root, eg mywebsite.com/svn/individual-repo. This setup has been working great for some time. Now, I need SSI (server-side includes) for a project, so I enabled this module with a2enmod include. Now, tortoisesvn can't access the repo; it always returns a 301 permanent redirect. Some playing with it reveals I can access it in a browser if I'm sure to include the trailing / but it still doesn't work in TortoiseSVN. I've looked at all of the faq's for this problem with TortoiseSVN and apache, and none of them seem to apply to my problem. Anyone have any insight into this problem?
I'm running Ubuntu 9.10 with Apache 2.2.12. The only change I've made to my configuration is to enable the includes mod.
Here's my dav_svn conf:
<Location /svn>
DAV svn
SVNParentPath /home/matthew/svn
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/subversion/passwd
Require valid-user
</Location>
and here's the relevant part of my virtual host conf:
<Location /svn>
SetHandler None
Order allow,deny
Allow from all
</Location>
Edit: OK, I've discovered that the real conflict is between the include module and basic authentication. That is, if I disable the include module, browse to the subversion repo, enter my user/pass for the basic authentication, I can browse it just fine. It even continues to work after I re-enable the include module. However, if I browse with another browser where I'm not already authenticated, then it no longer works.
© Server Fault or respective owner