Edgewall Software

Changes between Version 3 and Version 4 of TracMultipleProjectsWindows


Ignore:
Timestamp:
May 16, 2005, 6:07:54 PM (19 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracMultipleProjectsWindows

    v3 v4  
    1313Start out by creating a {{{projects}}} directory in your Document Root (C:/Program Files/Apache Group/Apache2/htdocs in this example). Projects will be accessed as http://hostname/projects/projectname. Create a directory in htdocs called, {{{projects}}}. Copy trac.cgi to this {{{projects/}}} directory together with a file named index.html (create if needed). This will be shown when users try to access nonexistent projects.
    1414
    15 Next create your Trac projects with trac-admin. In the original *nix multiple repositories install instructions the Trac projects need to reside in the same directory. The reference to the directory is the physical path, In this example we'll use {{{c:/svn/}}} . Add the following to your Apache configuration:
     15Next create your Trac projects with trac-admin. In the original *nix multiple repositories install instructions the Trac projects need to reside in the same directory. The reference to the directory is the physical path, In this example we'll use {{{c:/svn/}}} .
     16
     17    Note: if you are following the Trac install your database will be named "something.db" that ".db" is important. Where you set the TRAC_ENV below you will need to add that extenstion to have in find the database correctly.
     18
     19Add the following to your Apache configuration:
    1620
    1721{{{
     
    2832RewriteRule ^/projects/+$                       /projects/index.html [L]
    2933#RewriteCond /var/lib/trac/$1                   -d   
     34# following rule check TRAC_ENV, after $1 you may need to add '.db' if based on Trac install
    3035RewriteRule ^/projects/([[:alnum:]]+)(/?.*)     /projects/trac.cgi$2 [S=1,E=TRAC_ENV:c:/svn/$1]
    3136RewriteRule ^/projects/(.*)                     /projects/index.html