사이트 내 전체검색
아파치 인증 설정
로빈아빠
https://cmd.kr/server/72 URL이 복사되었습니다.

본문

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

댓글목록

등록된 댓글이 없습니다.

1,139 (11/23P)

Search

Copyright © Cmd 명령어 3.145.12.144