You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stephan Erlank <er...@gmail.com> on 2009/04/03 06:28:25 UTC
Authorization problem with virtual hosts
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@subversion.tigris.org].
Re: Authorization problem with virtual hosts
Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Stephan Erlank!
> What am I doing wrong?
Please post complete VHosts definitions.
It's hard to tell with details you've provided.
(And without using <IfModule> checks it would blow up if something gone wrong.
Not an issue if you're using it for SVN only)
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 03.04.2009, <17:36>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1532384
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].