[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] Configuration conflict between root folder and sub-folder
From:       "Justin M." <m.just1 () free ! fr>
Date:       2015-07-27 20:06:25
Message-ID: 1774843076.15783674.1438027585170.JavaMail.root () zimbra62-e11 ! priv ! proxad ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 #5 (text/html)]

<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div \
style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi \
dear Apache users,<br><br>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.<br><br>I am \
setting up a Debian 8 (Jessie) server on which I wish to have:<br>* access by the \
svn: protocol<br>* access by the http: protocol<br>* access by a WebSVN \
interface<br><br>Everything is working well with the configuration given by the files \
attached, that is:<br>OK to access 'svn://mysvnserver/' from a Subversion \
client<br>&nbsp;&nbsp;&nbsp; The SVN repository root is located in '/var/svn'<br>OK \
to access 'http://mysvnserver/svn' from a Subversion client, or directly from a web \
browser<br>&nbsp;&nbsp;&nbsp; The configuration file is \
'mods-enabled/dav_svn.conf'<br>OK to access 'http://mysvnserver/websvn' from a web \
browser<br>&nbsp;&nbsp;&nbsp; The WebSVN files are located in \
'/var/www/websvn'<br>&nbsp;&nbsp;&nbsp; The configuration file is \
'sites-enabled/websvn.conf' (enabled by a2ensite)<br><br>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 '&lt;Location /svn&gt;' directive, the WebSVN interface is no longer \
accessible because Apache try to read '/websvn' as a repository (but it's \
not).<br>From the documentation, I read " An exception is  <code>&lt;Location \
"/"&gt;</code>, 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 \
'&lt;LocationMatch "^/(?!websvn).*$"&gt;' , '&lt;Location /websvn&gt;' or \
'&lt;Directory /var/www/websvn&gt;', but I did not get a satisfying solution at that \
time.<br><br>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.<br><br><br>Thanks to you all,<br>Justin</div></body></html>


["site_websvn.conf" (application/octet-stream)]
["mod_dav_svn.conf" (application/octet-stream)]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic