skarcha/tests — Issue #15: 16 - Trac not working correctly 
Author: skarcha
Created: 2011-10-17 23:11:06+00:00
State: open

Similar to issue #15 so this time the cheroke conf is defined for each
project like that:

Directory /trac/proj1 {
Handler fcgi {
ErrorHandler on
CheckFile off
Server localhost:8000 {
Env TRAC_ENV "/var/lib/trac/proj1"
Interpreter "/var/www/localhost/cgi-bin/trac.fcgi"
}
}
}

Directory /trac/web/login {
Auth Basic {
Name "Trac auth"
Method htpasswd {
PasswdFile /etc/cherokee/trac.htpasswd
}
}
}

Directory /trac/proj2 {
Handler fcgi {
ErrorHandler on
CheckFile off
Server localhost:8000 {
Env TRAC_ENV "/var/lib/trac/proj2"
Interpreter "/var/www/localhost/cgi-bin/trac.fcgi"
}
}
}

Directory /trac/web/login {
Auth Basic {
Name "Trac auth"
Method htpasswd {
PasswdFile /etc/cherokee/trac.htpasswd
}
}
}

Request "^/trac/[^/]+/chrome/common/(.*)$" {
Handler redir {
Show Rewrite "/trac/chrome/common/$1"
}
}·····
Request "^/trac/[^/]+/login/chrome/common/(.*)$" {
Handler redir {
Show Rewrite "/trac/chrome/common/$1"
}
}··
···
Directory /trac/chrome/common {
Handler file
DocumentRoot /usr/share/trac/htdocs/
}

if you browse to http://server/trac/proj1 it works perfectly (including
login) so if you go to http://server/trac/proj2 you have again the proj1
trac homepage. If you open first porj2 and then go to proj1 you have proj2
again. Cherokee is caching TRAC_ENV?

Original link: http://code.google.com/p/cherokee/issues/detail?id=16