13 Sep 2005 faw   » (Journeyer)

TracMultipleProjects tricky!
So... in the last weeks I've been playing with Trac to setup it inside my company. We have a Multiple Project environment and I was trying to get it working under a name like this: "projects.foo.bar".

After some fight and after read the really nice mod_rewrite documentation (1.3 here) and the really cool URL Rewriting Guide (1.3 here) I get this setup to work:

Alias /trac "/usr/share/trac/htdocs/"
RewriteEngine on RewriteRule ^/trac(/?.*)$ - [L] RewriteRule ^/+$ /index.cgi [L]
RewriteCond /var/www/projects/$1 -d RewriteRule ^/([[:alnum:]]+)(/?.*) /trac.cgi$2 [S=1,E=TRAC_ENV:/var/www/projects/$1] RewriteRule ^/(.*) /index.cgi
The rest of the tricks are in the TracMultipleProject page, anyway, looks like that the new versions of Trac are using mod_pythons and some new resources, really good stuff. Congratualtions to Trac Team! I'm using this setup with Apache2 in a Debian Sarge environment. Enjoy it! :o)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!