Actions
Howto DokuWiki » History » Revision 1
Revision 1/2
| Next »
stbuehler, 2012-09-30 14:31
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 about 12 years ago · 1 revisions