Greetings, Will Scheidegger!
> I'm having a hard time configuring my virtual host to restrict access to my
> subversion repository. This is what my conf looks like:
> #Virtual Host Configuration
> <VirtualHost w.x.y.z:80>
> ServerName svn.domain.com
> <Location /svn/myproject>
> Order Allow,Deny
> Allow from all
> DAV svn
> SVNPath /usr/local/svn/myproject
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /etc/subversion/passwd
> Require valid-user
> Without the "Order Allow,Deny" + "Allow from all" directive the default
> virtual host configuration takes over and access is denied ("Server sent
> unexpected return value (403 Forbidden) in response to OPTIONS request...").
> But with the directives I'm never asked for a password. According to all the
> manuals I consulted on the web, this setup _should_ challenge the user for a
> password (stored in /etc/subversion/passwd). Do I need to configure
> something else, i.e. modify stuff in /usr/local/svn/myproject/conf?
Try running svn command with --no-auth-cache switch.
Not really see what's wrong with your setup...
For a convenience, here's my own configuration of authorization block (It
using SSPI module, however, you have to replace relevant directives by ones
suitable for your auth scheme):
CustomLog "C:/home/svn/.log/access_log" common env=!SVN-ACTION
CustomLog "C:/home/svn/.log/svn_access_log" svn env=SVN-ACTION
# some private stuff here to make all things to work straight
# Limit access to single local IP
# unless we have working authorization scheme
Allow from 192.168.1.10
Allow from all
AuthName "Subversion repository"
# only developers may access the repository
Require group "EXAMPLE\CVS"
# And they should obey to SVN user permissions file
Andrey Repin (anrdaemon_at_freemail.ru) 13.01.2010, <4:28>
Sorry for my terrible english...
Received on 2010-01-13 02:40:39 CET