Should work. Same way as virtual hosts work.
NameVirtualHost *
<VirtualHost *>
ServerName alpha.xyz.com
<Location />
DAV svn
SVNPath /path/to/alpha/repos
AuthType basic
AuthName "Alpha Repository"
AuthUserFile /path/to/alpha/users
Require valid-user
AuthzSVNAccessFile /path/to/alpha/authz
</Location>
</VirtualHost
<VirtualHost *>
ServerName beta.xyz.com
<Location />
DAV svn
SVNPath /path/to/beta/repos
AuthType basic
AuthName "Beta Repository"
AuthUserFile /path/to/beta/users
Require valid-user
AuthzSVNAccessFile /path/to/beta/authz
</Location>
</VirtualHost
So now you have two repositories at http://alpha.xyz.com/ and
http://beta.xyz.com/ each with their own user files, access permissions
etc.
Obviously you could vary the stuff inside
> Anybody try this? Any idea if it will work?
I haven't tried the exact configuration above, but I'm pretty sure it
will work. I'm doing something similar to get
http://svn.sourcecross.org:9081/ and https://svn.sourcecross.org:9082/
to work:
<VirtualHost *:9081>
SSLEngine off
Include /etc/apache2/sites-available/svn.sourcecross.org.conf
</VirtualHost>
<VirtualHost *:9082>
SSLEngine on
SSLCertificateFile /svn/sslcerts/svn.sourcecross.org.cert.pem
SSLCertificateKeyFile /svn/sslcerts/svn.sourcecross.org.key.pem
Include /etc/apache2/sites-available/svn.sourcecross.org.conf
</VirtualHost>
and svn.sourcecross.org.conf
ServerName svn.sourcecross.org
ServerAdmin admin@sourcecross.org
DocumentRoot /svn/webroot
<Location /repos>
DAV svn
SVNPath /svn/sourcecross.org
AuthType basic
AuthName "sourcecross.org Subversion Repository"
AuthUserFile /svn/userdb/htusers
Require valid-user
AuthzSVNAccessFile /svn/userdb/svnauthz
</Location>
I need separate <VirtualHost> entries to get SSL on one and not the
other. It's kind of the same thing, except I'm pointing to the same
repository for two virtual hosts, and I'm distinguishing the hosts by
port and not by server name.
Walter Nicholls
Technology Manager
Cornerstone Software Ltd (http://www.cornerstone.co.nz/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 27 02:31:43 2004