Project

General

Profile

Actions

Howto DokuWiki

Example vhost config (no /wiki folder, directly in web-root /):

Needs modules mod_access, mod_rewrite and mod_fastcgi (for the php action you have to define yourself).

if req.path =~ "/[._]ht" { access.deny; }
if req.path =~ "^/(bin|data|inc|conf)" { access.deny; }

rewrite (
    "^/_media/(.*)" => "/lib/exe/fetch.php?media=$1&%{request.query}",
    "^/_detail/(.*)" => "/lib/exe/detail.php?media=$1&%{request.query}",
    "^/_export/([^/]+)/(.*)" => "/doku.php?do=export_$1&id=$2&%{request.query}" 
);

docroot "/usr/share/dokuwiki";
index ( "doku.php", "index.php" );

if !phys.exists {
    rewrite "/(.*)" => "doku.php?id=$1&%{request.query}" 
    docroot "/usr/share/dokuwiki";
}

php;

Updated by stbuehler over 5 years ago · 2 revisions