Ticket #2418 (reopened defect)
Relative paths broken when project at root URI under lighttpd with fastcgi
| Reported by: | stephen_purcell@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.11rc1 |
| Severity: | normal | Keywords: | fastcgi, lighttpd |
| Cc: | shot@…, alexander@…, gustavo@… |
Description
I'm using Trac 0.9 on Debian 'unstable', and lighttpd 1.4.8.
Unlike the lighttpd examples given on the Trac wiki, my trac instance runs at the root URI of a dedicated domain. When I hit a URI such as '/timeline' on my trac site, all the relative links are prefixed '/timeline', so I have nav item links such as '/timeline/timeline' and '/timeline/browser'.
Is this a miscommunication of SCRIPT_PATH between lighttpd and the fastcgi handler?
The relevant lighttpd config snippet follows:
$HTTP["host"] =~ "^mysite\.com(:\d+)?$" {
# Setup an alias for the static resources
alias.url = ("/chrome/common" => "/usr/share/trac/htdocs")
$HTTP["url"] !~ "^/chrome/common" {
fastcgi.server = ( "/" =>
( "trac" =>
( "socket" => "/tmp/mysite-trac-fastcgi.socket",
"min-procs" => 2,
"max-procs" => 2,
"idle-timeout" => 300,
"bin-path" => "/usr/share/trac/cgi-bin/trac.fcgi",
"check-local" => "disable",
"bin-environment" =>
( "TRAC_ENV" => "/home/mysite/trac" )
)
)
)
}
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


