From 5518444e4b2df881404fc1a43084aa9e48062c17 Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Sun, 14 Sep 2014 11:28:52 +0000 Subject: [PATCH] Added support for x-sendfile --- README.md | 6 ++++++ dokuwiki.conf | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f836969..9c1386b 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,15 @@ You can now visit the install page to configure your new DokuWiki wiki. For example, if you are running container locally, you can acces the page in browser by going to http://127.0.0.1/install.php +Optimizing your wiki +-------------------- + Lighttpd configuration also includes rewrites, so you can enable nice URLs in settings (Advanced -> Nice URLs, set to ".htaccess") +For better performance enable xsendfile in settings. +Set to proprietary lighttpd header (for lighttpd < 1.5) + Build your own -------------- diff --git a/dokuwiki.conf b/dokuwiki.conf index b22f2b8..51e0f47 100644 --- a/dokuwiki.conf +++ b/dokuwiki.conf @@ -6,7 +6,8 @@ fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/var/run/lighttpd/php-fastcgi.socket", - "bin-path" => "/usr/bin/php5-cgi" + "bin-path" => "/usr/bin/php5-cgi", + "allow-x-send-file" => "enable" ) ) )