Contents

1 AuthType Basic
2 AuthType Digest



1 AuthType Basic #

  • passwd파일 만들기
    htpasswd -c htpasswd_file user_id
     
    • -c옵션은 최초 파일생성시만 사용

  • 디렉토리 설정(httpd.conf)
    <Directory "/home/in.xxxxnet.net/web-root/wiki">
        AuthType Basic
        AuthName "in.xxxxnet.net/wiki"
        AuthUserFile /home/in.xxxxnet.net/passwd/htpasswd
        Require valid-user
    </Directory>
     


  • apache restart (사용자파일만 변경된경우는 리스타트 불필요)


2 AuthType Digest #


  • Using MD5 Digest authentication

  • passwd파일 만들기
    htdigest -c htdigest_file realm_name user_id
     
    • -c옵션은 최초 파일생성시만 사용

  • 디렉토리 설정(httpd.conf)
    <Directory "/home/in.xxxxnet.net/web-root/wiki">
        AuthType Digest
        AuthName "in.xxxxnet.net/wiki"
        AuthDigestDomain /wiki/
        AuthDigestFile /home/in.xxxxnet.net/passwd/htdigest
        Require valid-user
    </Directory>
     



Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-11-05 10:37:08
Processing time 0.0092 sec