You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mike Dewhirst <mi...@dewhirst.com.au> on 2005/11/14 00:45:20 UTC

apache2 config - subversion alias

I'm trying to troubleshoot an Apache 2.0.53 configuration issue** and 
discovered a subversion warning in my SuSE 9.1 boot.msg. Subversion 
appears to be working fine so maybe this isn't a problam at all - just a 
blind alley.

In any case, when I originally set up subversion, I had to tweak the 
subversion.conf mercilessly to get svn working properly. I probably 
destroyed something so ... the relevant config stuff is below.

Any advice appreciated

Thanks

mike

-> This is the boot.msg extract

[Mon Nov 14 10:00:17 2005] [warn] The Alias directive in 
/etc/apache2/conf.d/subversion.conf at line 3 will probably never match 
because it overlaps an earlier Alias.
done

-> A search of all files in /etc/apache2/ for the string '/repos'

conf.d\subversion.conf(3): Alias /repos    /srv/svn/html
conf.d\subversion.conf(17): <Location /repos>
conf.d\subversion.conf(19): SVNParentPath /srv/svn/repos

-> contents of /etc/apache2/conf.d/subversion.conf

<IfModule mod_dav_svn.c>
     <IfModule mod_alias.c>
         Alias /repos    /srv/svn/html
     </IfModule>
     <Directory /srv/svn/html>
         Options         Indexes +Multiviews -FollowSymLinks
         IndexOptions    FancyIndexing \
                         ScanHTMLTitles \
                         NameWidth=* \
                         DescriptionWidth=* \
                         SuppressLastModified \
                         SuppressSize
         Order allow,deny
         Allow from all
     </Directory>
     #
     <Location /repos>
         DAV svn
         SVNParentPath /srv/svn/repos
         AuthzSVNAccessFile /srv/svn/user_access/access-policy
         AuthType Basic
         AuthName "repositories"
         AuthUserFile /srv/svn/user_access/auth-file
         Require valid-user
         <LimitExcept GET PROPFIND OPTIONS REPORT>
             #
         </LimitExcept>
     </Location>
</IfModule>
#

** The Apache2 problem is that I can't get Basic Auth to work on an 
ordinary directory unrelated to subversion. Basic auth actually works 
for the repositories but not elsewhere. I am posting on the apache list 
with that issue but just in case my subversion config tweaks have caused 
it - I thought I'd better ask here too.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: apache2 config - subversion alias

Posted by Frank Gruman <fg...@verizon.net>.
>
> ** The Apache2 problem is that I can't get Basic Auth to work on an 
> ordinary directory unrelated to subversion. Basic auth actually works 
> for the repositories but not elsewhere. I am posting on the apache 
> list with that issue but just in case my subversion config tweaks have 
> caused it - I thought I'd better ask here too.
>
I'm don't use Apache enough to call myself an expert, but my experience 
has been that anytime I use the <Location> directive I will never need 
an Alias.  The <Location> directive is the only thing that is necessary 
here because Subversion through Apache is not a true physical filesystem 
access method.  It is creating more of a web service via the mod_dav_svn 
protocol. 

For more info on the specifics of <Directory> and <Location> tags see 
http://httpd.apache.org/docs/2.1/sections.html.

I would recommend dropping the mod-alias section of your config, and 
move all the <Directory> configuration options to the <Location> tag.  
The only thing that is not necessary is the -FollowSymLinks Option as 
that is not supported in <Location> directives.  But you are already 
disabling it anyway...

HTH

Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org