DokuWiki

It's better when it's simple

User Tools

Site Tools


install:lighttpd_config_example

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install:lighttpd_config_example [2009-03-10 21:06] – fixed lighttpd rewrite problem 84.71.38.168install:lighttpd_config_example [2015-09-23 22:14] (current) 84.249.197.102
Line 1: Line 1:
 ====== Lighttpd example config ====== ====== Lighttpd example config ======
  
-Below is an example config containing both a replacement to the apache .htaccess directives and rewrite rules.  You can modify this based on you own preferences / needs.+Below is an example config containing both a replacement to the Apache .htaccess directives and rewrite rules.  You can modify this based on you own preferences / needs.
  
 If you use vhosts I'd recommend you put the following into it's own config, and include it only for that site, example: If you use vhosts I'd recommend you put the following into it's own config, and include it only for that site, example:
Line 11: Line 11:
 </code> </code>
  
-dokuwiki.conf: +<code bash dokuwiki.conf>
-<code bash>+
 # DokuWiki configuration # DokuWiki configuration
 # We assume here that the wiki is accessible via http://wiki.example.com/dokuwiki/ # We assume here that the wiki is accessible via http://wiki.example.com/dokuwiki/
Line 26: Line 25:
 # rewrites for dokuwiki # rewrites for dokuwiki
 $HTTP["url"] =~ "^" + var.dokudir { index-file.names = ("doku.php") } $HTTP["url"] =~ "^" + var.dokudir { index-file.names = ("doku.php") }
-    url.rewrite = ( +url.rewrite-once = ( 
-      "^" + var.dokudir + "/lib/.*$"              => "$0", +  "^" + var.dokudir + "/lib/.*$"                     => "$0", 
-      "^" + var.dokudir + "/_media/(.*)?\?(.*)$"  => var.dokudir + "/lib/exe/fetch.php?media=$1&$2", +  "^" + var.dokudir + "/_media/(.*)?\?(.*)$"         => var.dokudir + "/lib/exe/fetch.php?media=$1&$2", 
-      "^" + var.dokudir + "/_media/(.*)$"         => var.dokudir + "/lib/exe/fetch.php?media=$1", +  "^" + var.dokudir + "/_media/(.*)$"                => var.dokudir + "/lib/exe/fetch.php?media=$1", 
-      "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2", +  "^" + var.dokudir + "/_detail/(.*)?\?(.*)$"        => var.dokudir + "/lib/exe/detail.php?media=$1&$2", 
-      "^" + var.dokudir + "/_detail/(.*)?$"       => var.dokudir + "/lib/exe/detail.php?media=$1", +  "^" + var.dokudir + "/_detail/(.*)?$"              => var.dokudir + "/lib/exe/detail.php?media=$1", 
-      "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2", +  "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3", 
-      "^" + var.dokudir + "/doku.php.*"           => "$0", +  "^" + var.dokudir + "/_export/([^/]+)/(.*)"        => var.dokudir + "/doku.php?do=export_$1&id=$2", 
-      "^" + var.dokudir + "/feed.php.*"           => "$0", +  "^" + var.dokudir + "/doku.php.*"                  => "$0", 
-      "^" + var.dokudir + "/(.*)\?(.*)"           => var.dokudir + "/doku.php?id=$1&$2", +  "^" + var.dokudir + "/feed.php.*"                  => "$0", 
-      "^" + var.dokudir + "/(.*)"                 => var.dokudir + "/doku.php?id=$1" +  "^" + var.dokudir + "/(.*)\?(.*)"                  => var.dokudir + "/doku.php?id=$1&$2", 
-    )+  "^" + var.dokudir + "/(.*)"                        => var.dokudir + "/doku.php?id=$1" 
 +)
 </code> </code>
 +
 +Note: On [[install:Debian]] there is no dokuwiki.conf, but there is a symlink ''/etc/lighttpd/conf-enabled/50-dokuwiki.conf -> ../conf-available/50-dokuwiki.conf'' which itself is a symlink: ''/etc/lighttpd/conf-available/50-dokuwiki.conf -> /etc/dokuwiki/lighttpd.conf''
install/lighttpd_config_example.1236715612.txt.gz · Last modified: 2009-12-23 15:36 (external edit)

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