When Lighttpd is setup with FastCGI to have Trac in the rootdir, PATH_INFO and SCRIPT_NAME will be set wrongly (by Lighttpd) and thus Trac will thing "projectname" in the request "/projectname" is the SCRIPT_NAME and no environment was specified. Sample setup: $HTTP["url"] =~ "^(?!/chrome)" { fastcgi.server = ( "/" => ( "trac" => ( ... A patch was provided by thatch in #trac on FreeNode (attached). The bug is known to both Trac and Lighttpd: http://trac.edgewall.org/ticket/2418 http://trac.lighttpd.net/trac/ticket/729 Reproducible: Always Steps to Reproduce:
Created attachment 128071 [details, diff] Patch provided by thatch in #trac on FreeNode?
PS: TRAC_LIGHTTPD_ROOT_WORKAROUND should be set to "/" if you want to run Trac in the root of the server.
As the upstream bug for www-apps/trac was WONTFIXed since it's a bug in lighttpd, I'm closing it here as well. File a bug about lighttpd if you wish, or you'll need to fix this on your overlay. We won't merge patches that upstream refused. Sorry.