-
Notifications
You must be signed in to change notification settings - Fork 148
TracMultipleProjects
By following these instructions, you will set up Apache to automatically serve multiple Trac projects for you.
Start out by creating a project directory in your documentroot (/var/www in this example). Projects will be accessed as http://hostname/projects/projectname. Copy (or symlink) trac.cgi to this directory together with a file named index.html. This will be shown when users try to access nonexistent projects.
Then create your trac projects with trac-admin. It's important that they are all placed in the same directory. In this example we'll use /var/lib/trac. Add to your Apache configuration:
Make sure you have the rewrite module loaded or compiled in Apache.
Now, when you add another project, you don't need to edit any apache config. The only file you may want to edit is index.html to make it list the new project. If you think this is too much work, replace it with a python cgi script that does it for you.
[wiki:TracStandalone] and TracModPython can also serve multiple projects.
See also: TracGuide, TracInstall