DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:dokuwiki_trac_lighttpd_integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
tips:dokuwiki_trac_lighttpd_integration [2010-01-20 17:20] – created 87.197.129.85tips:dokuwiki_trac_lighttpd_integration [2010-01-20 17:26] – typo 87.197.129.85
Line 11: Line 11:
   * links from DokuWiki pages to Trac tickets are displayed as invalid (but working)   * links from DokuWiki pages to Trac tickets are displayed as invalid (but working)
   * links from Trac tickets to DokuWiki pages are displayed as invalid (but working)   * links from Trac tickets to DokuWiki pages are displayed as invalid (but working)
-  * Trac's internal wiki gets in the way, sort of 
  
 If you already tried to set up Trac to work with lighttpd at root URL, you have probably bumped into [[http://trac.edgewall.org/ticket/2418|this problem]]. According to the thread, the issue is in how lighttpd deals with root URLs. Even when using //"fix-root-scriptname" => "enable"//, Trac gets the base URL wrong sometimes (my experience). However, all problems seem to magically disappear when Trac runs at relative URL like ./trac or so. And that is exactly what this tip is about. If you already tried to set up Trac to work with lighttpd at root URL, you have probably bumped into [[http://trac.edgewall.org/ticket/2418|this problem]]. According to the thread, the issue is in how lighttpd deals with root URLs. Even when using //"fix-root-scriptname" => "enable"//, Trac gets the base URL wrong sometimes (my experience). However, all problems seem to magically disappear when Trac runs at relative URL like ./trac or so. And that is exactly what this tip is about.
Line 88: Line 87:
 </code> </code>
  
-The important point here is that //url.redirects (external)// are done after //url.rewrites (internal)//, so we do not want lighttpd do rewrite any URL starting with **/trac/** (and so on) prior to redirection.+The important point here is that //url.redirects (external)// are done after //url.rewrites (internal)//, so we do not want lighttpd to rewrite any URL starting with **/trac/** (ending with **ticket123** etc.) prior to redirection.
  
 ====== How it behaves ====== ====== How it behaves ======

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki