Re: [viewvc-users] Configuring ViewVC in several Virtual Sites
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Ron Meske wrote:
> Hi All,
>
> We recently started using SubVersion and ViewVC and have successfully
> configured Apache and Subversion to allow us to separate out our
> repositories by client and project using Apache's Virtual Sites for each
> client and unique repository for each project of a client. We are now
> trying to configure ViewVC to work with our configuration.
>
> Our folder structure is:
>
> -Client 1
> --Project 1
> --Project 2
> -Client 2
> --Project 1
> --Project 2
>
> We have setup Virtual sites in apache to point to each client folder.
> We then create a repository in each project folder. Using a subversion
> client we can browse each project repository.
>
> Can anyone point us to a way of configuring ViewVC to work with this
> type of setup?
>
> Many thanks,
> Ron Meske
Hey, Ron. It's me again. :-) (No, I promise that I'm not hiding at every
possible Internet endpoint, waiting to ambush you.)
Over at open.collab.net, I just asked if you had given ViewVC's vhost
support a try. Sounds like maybe you have not.
To use the ViewVC vhost support, you'll need to do a few things:
1. Define the vhost names for each of your virtual servers:
[vhosts]
client1 = client1.mydomain.com
client2 = client2.mydomain.com
...
This creates the opportunity to do override ViewVC configuration values
on a per-vhost basis.
2. Start doing that overriding. You do this by creating configuration
sections named "vhost-VHOSTNAME/CONFIGSECTION". So, for example, if you
wanted to change the set of repositories available via each virtual
host, you might do:
[vhost-client1/general]
root_parents = /path/to/Client_1 : svn
[vhost-client2/general]
root_parents = /path/to/Client_2 : svn
Each of these tells ViewVC, "When serving up via vhost "client1" (for
example), ignore the value of "root_parents" found under the [general]
configuration section, and use the one from [vhost-client1/general]
instead. Any values you do not override in a per-vhost section are
taken from the top-level configuration sections ([general], [options],
etc.)
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Distributed Development On Demand
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=1577596
To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknbWY0ACgkQokEGqRcG/W7iKQCfaOeEX/bIGDFHlnlwZPpM0Cs2 bCEAoKB3GrYB1o1TOuIJOgs8bMPQ0vQM =UZ3u -----END PGP SIGNATURE-----