Configuration conflict between root folder and sub-folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: site_websvn.conf
Description: Binary data

Attachment: mod_dav_svn.conf
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux