[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Authorization problem with virtual hosts

From: Stephan Erlank <erlankenator_at_gmail.com>
Date: Fri, 3 Apr 2009 08:28:25 +0200

Hi,

I have 2 svn repos being accessed on apache through 2 virtual hosts.
The config inside the virtual hosts looks like this :

Domain 1 :

<Location />
  DAV svn
  SVNPath /var/www/vhosts/domain1/svn

  AuthType Basic
  AuthName "Domain1 Repository"
  AuthUserFile /var/www/vhosts/domain1/svn/conf/htpasswd
  AuthzSVNAccessFile /var/www/vhosts/domain1/svn/conf/authz

  Require valid-user
</Location>

Domain 2 :

<Location />
  DAV svn
  SVNPath /var/www/vhosts/domain2/svn

  AuthType Basic
  AuthName "Domain2 Repository"
  AuthUserFile /var/www/vhosts/domain2/svn/conf/htpasswd
  AuthzSVNAccessFile /var/www/vhosts/domain2/svn/conf/authz

  Require valid-user
</Location>

But I can log into domain 2 using a username and password provided in
/var/www/vhosts/domain1/svn/conf/htpasswd, and into domain 1 using a
username and password provided in
/var/www/vhosts/domain2/svn/conf/htpasswd.

What am I doing wrong?

Thanks.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1529227

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-03 13:39:54 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.