[Trac] multiple projects -- fubar!!

Jani Averbach jaa at jaa.iki.fi
Thu Mar 3 15:45:02 EST 2005


On 2005-03-03 12:29-0800, bruce wrote:

[ Please keep on Trac-list so others can also contribute/benefit ]

> 
> have you setup a multiple project system??
> 

Yep, here is the setup:

Trac installation location:
  /opt/trac/default/

SVN installation location:
  /opt/svn/default/

SVN repositories:
  /srv/svn/repos/proj_1
  /srv/svn/repos/proj_2

Trac environments:
  /srv/svn/trac/proj_1
  /srv/svn/trac/proj_2


Trac config for Apache httpd:

# start of Trac conf for Apache httpd
Alias /trac "/opt/trac/default/share/trac/htdocs/"
<Location "/tracd">
    SetHandler mod_python
    PythonHandler trac.ModPythonHandler
    PythonOption TracUriRoot /tracd
    PythonOption TracEnvParentDir "/srv/svn/trac"
    
    # The following should be on the one line
    PythonPath "sys.path + [ '/opt/svn/default/lib/svn-python',
               '/opt/svn/default/lib/svn-python/libsvn', '/opt/svn/default/lib/svn-python/svn',
               '/opt/trac/default/lib/python2.3/site-packages' ]"
</Location>

# You need something like this to authenticate users
<LocationMatch "/tracd/[[:alnum:]]+/login">
   AuthType Basic
   AuthName "XXX SVN & Trac System"
   AuthUserFile /etc/opt/svnd/svn_users.passwd
   Require valid-user
</LocationMatch>
# End of Trac conf for Apache httpd


Try with this kind of setup, where your projects are not under the
root of htdocs, and if you get that working, then reconfigure for
http://hostname/ if you like.

BR, Jani

-- 
Jani Averbach


More information about the Trac mailing list