You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Justin M." <m....@free.fr> on 2015/07/27 22:06:25 UTC

[users@httpd] Configuration conflict between root folder and sub-folder

Hi dear Apache users, 

I contact you because I am not that good at configuring Apache, and I am facing a problem that I am not able to solve alone. 

I am setting up a Debian 8 (Jessie) server on which I wish to have: 
* access by the svn: protocol 
* access by the http: protocol 
* access by a WebSVN interface 

Everything is working well with the configuration given by the files attached, that is: 
OK to access 'svn://mysvnserver/' from a Subversion client 
The SVN repository root is located in '/var/svn' 
OK to access 'http://mysvnserver/svn' from a Subversion client, or directly from a web browser 
The configuration file is 'mods-enabled/dav_svn.conf' 
OK to access 'http://mysvnserver/websvn' from a web browser 
The WebSVN files are located in '/var/www/websvn' 
The configuration file is 'sites-enabled/websvn.conf' (enabled by a2ensite) 

But now I would have access to SVN with the http: protocol at the root folder (/) instead of a sub-folder (/svn). If I modify the '<Location /svn>' directive, the WebSVN interface is no longer accessible because Apache try to read '/websvn' as a repository (but it's not). 
>From the documentation, I read " An exception is <Location "/"> , which is an easy way to apply a configuration to the entire server. " but I do not want to apply the configuration to /websvn! I have tried to use '<LocationMatch "^/(?!websvn).*$">' , '<Location /websvn>' or '<Directory /var/www/websvn>', but I did not get a satisfying solution at that time. 

Do you have some clues to apply my "DAV svn" configuration on all sub-folders of the root, except '/websvn'? This would be greatly helpful. 


Thanks to you all, 
Justin