사용자 도구

사이트 도구


dokuwiki

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
dokuwiki [2010/11/25 21:43]
kwon37xi
dokuwiki [2019/06/12 10:35]
kwon37xi
줄 11: 줄 11:
 ====== Apache 기본 설정 ====== ====== Apache 기본 설정 ======
   * /etc/apache2/conf.d/charset 에서 "AddDefaultCharset UTF-8" 추가한다.   * /etc/apache2/conf.d/charset 에서 "AddDefaultCharset UTF-8" 추가한다.
-  * [[ApacheSecurity|ApacheSecurity]] 보안사항 적용+  * [[apache:security|Apache 보안사항 적용]]
   * /etc/apache2/site-enabled/default 에 다음 추가   * /etc/apache2/site-enabled/default 에 다음 추가
 <code> <code>
줄 21: 줄 21:
   * **AllowOverride All**은 .htaccess 파일 접근 권한 때문에 필요하다.   * **AllowOverride All**은 .htaccess 파일 접근 권한 때문에 필요하다.
   * /etc/init.d/apache2 restart 로 재시작.   * /etc/init.d/apache2 restart 로 재시작.
 +
 +====== 서버 설정 마무리 ======
 +  * http://server/dokuwiki/install.php 를 실행하여 설치를 마무리 한다.
 +  * 완료후 install.php는 삭제해버린다.
 +  * ''php7.0-xml'' 패키지가 있어야만 검색 속도가 빨라진다.<code sh>
 +sudo apt-get install php7.0-xml
 +sudo service php-fpm restart
 +</code>
 +
 +====== 보안 ======
 +  * dokuwiki 아래의 bin,conf,inc,data 디렉토리는 브라우저로 접근 가능하면 안된다. .htaccess 파일이 접근알 자동으로 막고 있지만, 혹시 접근 되는 파일이 있는지 직접 브라우저에서 주소를 쳐서 확인해본다.
 +  * 만약 위 디렉토리에서 접근 가능한 파일이 있다면 그것은 아파치 설정에서 **AllowOverride All**이 빠져있기 때문일 수 있다.
 +  * 사용자 Register 방지 : 나 외의 다른 사용자는 가입 불가이며, 읽기 쓰기 금지이다. http://www.dokuwiki.org/faq:regdisable 참조
 +    * conf/local.php 에 **$conf['disableactions'] = 'register';** 추가
 +
 +====== 예쁜 URL 만들기 ======
 +  * http://www.dokuwiki.org/rewrite 참조
 +  * .htaccess에서 주석 풀어주고,
 +  * conf/local.php 파일에서
 +  * <code>
 +$conf['userewrite'] = 1;
 +$conf['useslash'] = 1;
 +</code>
 +
 +====== Template Hook ======
 +  * 템플릿 코드 변경없이 특정 위치에 HTML을 삽입할 수 있게 해줌.
 +  * [[https://www.dokuwiki.org/template:dokuwiki#supported_include_hooks|;Dokuwiki Supported include hooks]]
 +
 +the template directory (''lib/tpl/dokuwiki/'') or your ''conf/'' directory.
 +
 +^ Filename               ^ Position of included HTML                                                ^
 +| ''meta.html''          | Inside the HTML <head>, use this to add additional styles or metaheaders |
 +| ''sidebarheader.html'' | At the top of the sidebar (if any) |
 +| ''sidebarfooter.html'' | At the bottom of the sidebar (if any) |
 +| ''pageheader.html''    | At the top inside the content box, above the actual content |
 +| ''pagefooter.html''    | At the bottom inside the content box, below the actual content |
 +| ''header.html''        | At the top of the page, above the logo and wiki title |
 +| ''footer.html''        | At the very end of the page after all other page content |
 +====== Plugins ======
 +  * 플러그인은 ''dokuwiki/lib/plugins/'' 에 플러그인 이름을 가진 디렉토리로 저장된다.
 +  * 플러그인 관리자에서 직접 다운로드해 설치할 수도 있고, 파일을 받아서 해당 디렉토리에 압축을 풀어도 된다.
 +
 +===== 현재 적용된 플러그인 =====
 +  * [[https://www.dokuwiki.org/plugin:changes|changes]]
 +  * [[https://www.dokuwiki.org/plugin:command|command]]
 +    * 사용자 정의 명령 추가.
 +    * ''dokuwiki/plugins/command/ext''에 추가할 명령 PHP 파일을 넣는다.
 +    * [[https://www.dokuwiki.org/plugin:gist|gist]]
 +
  
dokuwiki.txt · 마지막으로 수정됨: 2021/12/04 15:17 저자 kwon37xi