아파치 인증 설정
로빈아빠
본문
1. httpd.conf
<Directory "/home">
Options FollowSymLinks Includes ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
2. 인증하려는 폴더
[roy7@www p]$ cat .htaccess
AuthType "Basic"
AuthName "Administrator"
AuthUserFile /home/roy7/public_html/p/.htpasswd
AuthGroupFile /dev/null
<Limit GET>
require valid-user
</Limit>
[roy7@www p]$
3. .htpasswd 생성
# htpasswd -c passwdfile username
4. user 계정추가
# htpasswd passwdfile user
출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=ltip&wr_id=212&page=6
<Directory "/home">
Options FollowSymLinks Includes ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
2. 인증하려는 폴더
[roy7@www p]$ cat .htaccess
AuthType "Basic"
AuthName "Administrator"
AuthUserFile /home/roy7/public_html/p/.htpasswd
AuthGroupFile /dev/null
<Limit GET>
require valid-user
</Limit>
[roy7@www p]$
3. .htpasswd 생성
# htpasswd -c passwdfile username
4. user 계정추가
# htpasswd passwdfile user
출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=ltip&wr_id=212&page=6
관련링크
댓글목록
등록된 댓글이 없습니다.