ko:install:lighttpd
Lighttpd 웹 서버에 DokuWiki 설치
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.
- jk Lee - real mail domain is gmail, not zoo.com for spam filtering 2007-2-9 created
ko/install/lighttpd.txt · 마지막으로 수정됨: 2007-02-09 08:25 저자 bootmeta