DokuWiki는 Lighttpd와 fastcgi를 사용한 PHP에서 잘 동작됩니다. Lighttpd와 PHP 튜토리얼문서를 참고하여 설치하고 설정을 변경합니다. 정말로 원하는 것이 아니라면 FASTCGI 설정을 많이 변경하지 말기 바랍니다. 여기 변경 예제가 있습니다:
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php5-fcgi"
)
)
)
Lighttpd는 .htaccess파일을 사용하지 않으므로 특정 파일과 디렉토리에 접근을 거부하도록 몇가지 옵션을 설정해야합니다:
# subdir of dokuwiki
var.basedir = "/dokuwiki/"
# make sure those are always served through fastcgi and never as static files
static-file.exclude-extensions = ( ".php" )
# deny access completly to these
$HTTP["url"] =~ "/\.ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "/_ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + basedir + "bin/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + basedir + "data/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + basedir + "inc/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + basedir + "conf/" { url.access-deny = ( "" ) }
basedir변수가 설치 디렉토리와 일치하도록 수정합니다.
EDIT: 제 경우에는 위의 예제가 동작하지 않아 아래 코드를 사용했습니다.
$HTTP["url"] =~ "/dokuwiki/\.ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "/dokuwiki/_ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + "/dokuwiki/" + "bin/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + "/dokuwiki/" + "data/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + "/dokuwiki/" + "inc/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + "/dokuwiki/" + "conf/" { url.access-deny = ( "" ) }
Lighttpd에서 rewriting기능을 지원하게 하려면 rewriting문서를 참고하기 바랍니다.
english version: dokuwiki-2006-11-06.
Add your email here if you created translated or modified whole or part of this page.
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported