Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188833 - www-apps/trac - workaround for Lighttpd FastCGI problem with trac in rootdir
Summary: www-apps/trac - workaround for Lighttpd FastCGI problem with trac in rootdir
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 13:56 UTC by Dennis Schridde
Modified: 2007-08-14 14:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch provided by thatch in #trac on FreeNode? (trac_lighttpd_root_workaround.patch,582 bytes, patch)
2007-08-14 13:56 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2007-08-14 13:56:11 UTC
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:
Comment 1 Dennis Schridde 2007-08-14 13:56:37 UTC
Created attachment 128071 [details, diff]
Patch provided by thatch in #trac on FreeNode?
Comment 2 Dennis Schridde 2007-08-14 13:59:15 UTC
PS: TRAC_LIGHTTPD_ROOT_WORKAROUND should be set to "/" if you want to run Trac in the root of the server.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-14 14:02:37 UTC
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.