Hi,
[...]
>
> Is there a way to setup a windows install so that it can support
> multiple projects on the same port? Ideally, I would like to get the
> page that list projects to list all my projects and just have access
> control via Trac crendentials.
if you can already use tracd and are not forced to use IIS,
then use Apache2, that will simplify your life a lot :)
here a sample setting:
C:\mainTrac
|_ .htaccess (global credentials for Trac)
|_ projectA/ <- trac dir
|_ projectB/ <- trac dir
etc..
C:\mainSVN
|_ passwd (global credentials for SVN)
|_ projectA/ <- SVN repo
|_ projectB/ <- SVN repo
you have to initialize Trac env and SVN for each directory
you can configure Apache2 like that:
<VirtualHost *:80>
ServerName projects.domain.com
Alias /trac "C:/path/to/Python/share/trac/htdocs"
RewriteEngine On
SetEnv TRAC_ENV_PARENT_DIR "C:/mainTrac"
ScriptAliasMatch ^/(.*) "C:/path/to/Apache2/cgi-bin/trac.cgi/$1"
<Location "/">
AuthType Basic
AuthName "Projects"
AuthUserFile C:/mainTrac/.htaccess
Require valid-user
</Location>
<LocationMatch "[^/]+/login">
AuthType Basic
AuthName "Projects"
AuthUserFile C:/mainTrac/.htaccess
Require valid-user
</LocationMatch>
<Location "/SVN">
DAV svn
SVNParentPath C:/mainSVN/
AuthzSVNAccessFile "C:/mainSVN/passwd"
Require valid-user
AuthType Basic
AuthName "SVN Repositories"
AuthUserFile C:/mainSVN/.htaccess
</Location>
<Directory "C:/path/to/Python/share/trac/htdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
with this setting:
http://projects.domain.com <- list of all Trac projects
http://projects.domain.com/projectA
http://projects.domain.com/projectB
etc..
and depending on the .htaccess and passwd file
you can give different credentials for the users
ex:
passwd - credentials to access the SVN repo
----------------------------
[users]
userA = aaaa
userA2 = a2a2
userB = bbbb
userB2 = b2b2
[groups]
projectA-group = userA, userA2
projectB-group = userB, userB2
[/]
* = r
[projectA:/]
@projectA-group = rw;
[projectB:/]
@projectB-group = rw;
----------------------------
.htaccess
provide access to the projects at the URL level
use htpasswd from Apache2/bin to generate
----------------------------
userA:$apr1$xx....xxxxxxxxxxxxxxxx
userA2:$apr1$xx....xxxxxxxxxxxxxxxx
userB:$apr1$xx....xxxxxxxxxxxxxxxx
userB2:$apr1$xx....xxxxxxxxxxxxxxxx
----------------------------
then use Trac webAdmin to define credentials per user
of the projects
note:
all this to allow everyone with a log/pwd to at least be able to read
all the projects
if you want people from projectsB not even being able to access
projectA,
you will need a lighty different setting for .htaccess
HTH
zwetan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-users
-~----------~----~----~----~------~----~------~--~---