tips:dokuwiki_trac_lighttpd_integration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:dokuwiki_trac_lighttpd_integration [2010-01-20 17:24] – not really 87.197.129.85 | tips:dokuwiki_trac_lighttpd_integration [2023-09-20 21:47] (current) – documentation of the old auth backends is removed Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Integrating DokuWiki with Trac trough lighttpd ====== | ||
- | This is not a " | ||
- | |||
- | That said, here is what works: | ||
- | * linking from Trac tickets to DokuWiki pages | ||
- | * linking from Dokuwiki to Trac tickets | ||
- | * Trac is accessible at http:// | ||
- | * Trac runs as fcgi | ||
- | What does not work: | ||
- | * separate authentication is necessary for DokuWiki and Trac | ||
- | * 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) | ||
- | |||
- | If you already tried to set up Trac to work with lighttpd at root URL, you have probably bumped into [[http:// | ||
- | |||
- | As mentioned earlier all the magic is done with //url rewrites// and // | ||
- | |||
- | You need to have these modules enabled in your // | ||
- | * mod_rewrite | ||
- | * mod_redirect | ||
- | * mod_alias | ||
- | * mod_access | ||
- | * mod_fcgi | ||
- | |||
- | Here goes lighttpd' | ||
- | < | ||
- | $HTTP[" | ||
- | |||
- | var.dokudir = "/ | ||
- | var.tracdir = "/ | ||
- | server.document-root = "/ | ||
- | | ||
- | # | ||
- | auth.require = ("/ | ||
- | " | ||
- | " | ||
- | " | ||
- | ), | ||
- | ) | ||
- | | ||
- | # make sure those are always served through FastCGI and never as static files | ||
- | static-file.exclude-extensions = ( " | ||
- | | ||
- | # deny access completely to these | ||
- | $HTTP[" | ||
- | $HTTP[" | ||
- | |||
- | # static content & fcgi for trac | ||
- | alias.url = ("/ | ||
- | $HTTP[" | ||
- | # do nothing if url points to static content | ||
- | } | ||
- | else $HTTP[" | ||
- | fastcgi.server = ( "/ | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ), | ||
- | ), | ||
- | ) | ||
- | } | ||
- | # rewrites for dokuwiki | ||
- | $HTTP[" | ||
- | | ||
- | url.rewrite = ( | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ) | ||
- | url.redirect = ( | ||
- | " | ||
- | " | ||
- | ) | ||
- | } | ||
- | </ | ||
- | |||
- | The important point here is that // | ||
- | |||
- | ====== How it behaves ====== | ||
- | =====Dokuwiki side ===== | ||
- | |||
- | This internal DokuWiki link is intercepted and points to Trac | ||
- | [[*:trac]] points to http:// | ||
- | However, links below are treated as DokuWiki links and point to Dokuwiki pages | ||
- | [[*:trac:]] points to http:// | ||
- | [[*: | ||
- | [[*: | ||
- | [[*: | ||
- | A link in **any** DokuWiki page like the one below redirects you to the corresponding Trac ticket | ||
- | [[ticket123]] points to http:// | ||
- | |||
- | ===== Trac side ===== | ||
- | |||
- | URLs below point to Trac and are not converted | ||
- | http:// | ||
- | http:// | ||
- | http:// | ||
- | ... | ||
- | ... | ||
- | Internal Trac links in tickets can point to DokuWiki pages | ||
- | [wiki: | ||
- | [wiki: | ||
- | |||
- | |||
- | You can also disable Trac's internal Wiki in / | ||
- | |||
- | Written by --// | ||
tips/dokuwiki_trac_lighttpd_integration.1264004649.txt.gz · Last modified: 2010-01-20 17:24 by 87.197.129.85