Ticket #1287 (closed defect: invalid)
Opened 7 years ago
Last modified 7 years ago
Doc on TracMultipleProjects
| Reported by: | anonymous | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.8.1 |
| Severity: | normal | Keywords: | documentation install |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by cmlenz) (diff)
I am using the 0.8.1 version on Windows 2000 with Apache. I followed the instructions on TracMultipleProjects, but didn’t worked until I changed this:
RewriteRule ^/projects/([[:alnum:]]+)(/?.*) \
/projects/trac.cgi$2 [S=1,E=TRAC_ENV:c:/svn/$1]
to this:
RewriteRule ^/projects/([[:alnum:]]+)(/?.*) \
/proyectos/trac.cgi$2 [S=1,E=TRAC_ENV:c:/svn/$1.db]
And this:
Alias /trac/ "C:/Python23/share/trac/htdocs"
to this:
Alias /projects/ "C:/Python23/share/trac/htdocs"
Attachments
Change History
comment:1 Changed 7 years ago by cmlenz
- Description modified (diff)
- Keywords documentation install added
- Resolution set to invalid
- Status changed from new to closed
comment:2 Changed 7 years ago by Scott Gaitskell
The reason for TRAC_ENV requiring a .db ending a direct result of the user setting up the trac database as per TracOnWindows.
Which states:
- Run trac-admin
C:\Python23\Scripts> python trac-admin c:/svn/trac.db
I will assume that TracMultipleProjects expects the user to use c:\SVN for the subversion repositories, and then use c:\projects for the Trac databases.
So Project1 is setup like so:
c:\SVN\project1 <-- The Subversion repository
c:\projects\project1 <-- The Trac database
Maybe someone should add TracBestPractices? to the wiki.



Well, of course you have to adjust the provided examples to your specific setup.
I don't know why your TRAC_ENV has a .db ending, it should a normal directory, not a database file.
I also don't actually believe that using /projects/ as URL for the static files (images, CSS, etc) will work correctly unless you also have made some other changes. /trac/ in the examples is for the static files, /projects/ is for the dynamic stuff.