If so, how?
This is related to Question 43805. If the repo is properly chmod
ed but outside the document root directory tree, Apache complains that it can't access the format
file in the root of the repo. If the repo is somewhere in the document root directory tree, everything works.
It's certainly possible, I have a similar setup to David (mine is the default setup for Centos):
with the following in my
/etc/httpd/conf.d/subversion.conf
file (minus comments):Do you have SELinux in Enforcing? You might need to correctly set the context of the files in your /var/www/svn location.
The
sestatus
command will show you whether you're in Enforcing mode or not. You can (temporarily) usesetenforce 0
to switch from Enforcing to Permissive and try again to see if that is the problem.You want the labelling for the format file to be
system_u:object_r:httpd_sys_content_t:s0
(usels -Z
to see SELinux labels for files). You can fix it usingrestorecon -R /var/www/svn
.For further reading on SELinux, I refer you to the Fedora SELinux User Guide
This is perfectly fine. You set the path using the SVNPath or SVNParentPath options. You should really have these outside your document root, as they're not meant to be accessed that way.
We have: