Changes between Version 3 and Version 4 of TracMultipleProjectsWindows
- Timestamp:
- May 16, 2005, 6:07:54 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracMultipleProjectsWindows
v3 v4 13 13 Start 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. 14 14 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: 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/}}} . 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 19 Add the following to your Apache configuration: 16 20 17 21 {{{ … … 28 32 RewriteRule ^/projects/+$ /projects/index.html [L] 29 33 #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 30 35 RewriteRule ^/projects/([[:alnum:]]+)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:c:/svn/$1] 31 36 RewriteRule ^/projects/(.*) /projects/index.html