RE: [viewvc-users] Configuring ViewVC in several Virtual Sites
Ron Meske <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <5EE4220D7790430FA97B577FC2B1188E__22358.8344561451$1239554437$gmane$org@tsdnet.local> |
I tried modifying the [vhosts] section for viewvc and have gotten a little
further in configuring this, now I am at least getting a repository not
found message. So, I think I am close.
If someone can take a look at how I have configured Apache and ViewVC and
let me know where I have made a mistake I would appreciate it.
In the Apache vhost config file I have:
<VirtualHost *:8010>
ServerAdmin [email protected]
DocumentRoot "C:\Program Files (x86)\CollabNet Subversion
Server/httpd/htdocs2"
ServerAlias client1.tsdnet.local
ErrorLog "logs/client1.tsdnet.local-error.log"
CustomLog "logs/client1.tsdnet.local-access.log" common
<Location /svn>
DAV svn
SVNParentPath "c:\svn_repos\client1"
SVNListParentPath On
Require valid-user
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain tsdnet.local
AuthName "Client1 repository"
SSPIOfferBasic On
AuthzSVNAccessFile "C:\Program Files (x86)\CollabNet Subversion
Server\httpd\auth\svnaccessfile.txt"
</Location>
<Location /viewvc>
Require valid-user
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain tsdnet.local
#SSPIOfferBasic On
AuthName "Client1 repository"
</Location>
</VirtualHost>
In the ViewVC config file I have:
[vhosts]
client1 = client1.tsdnet.local
[vhost-client1/general]
root_parents = c:\svn_repos\client1: svn
The response I receive with going to
http://client1.tsdnet.local:8010/viewvc/repo1/
An Exception Has Occurred
The root "repo1" is unknown. If you believe the value is correct, then
please double-check your configuration.
HTTP Response Status
404 Repository not found
-----Original Message-----
From: C. Michael Pilato [mailto:[email protected]]
Sent: Tuesday, April 07, 2009 6:48 AM
To: Ron Meske
Cc: [email protected]
Subject: Re: [viewvc-users] Configuring ViewVC in several Virtual Sites
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=1671724
To unsubscribe from this discussion, e-mail: [[email protected]].