[예전게시판백업] (.htpasswd & .htaccess) 특정 디렉토리에 암호걸기
os/Linux 2004. 2. 2. 03:27 |$vi /etc/httpd/conf/httpd.conf 적당한 줄에 삽입
><Directory /uandme/www/uandme/phpMyAdmin>
> AllowOverride AuthConfig
></Directory>
암호걸 디렉토리에 .htaccess 생성
>AuthName "관리자 화면입니다."
>AuthType Basic
>AuthUserFile /uandme/www/uandme/phpMyAdmin/.htpasswd
>AuthGroupFile /dev/null
>require valid-user
.htpasswd 생성
$htpasswd -c /uandme/www/uandme/phpMyAdmin/.htpasswd bigrock
아파치 재시작 -> httpd://phpmyadmin.uandme.co.kr/ 은 아이디/패스워드 인증후 가능
><Directory /uandme/www/uandme/phpMyAdmin>
> AllowOverride AuthConfig
></Directory>
암호걸 디렉토리에 .htaccess 생성
>AuthName "관리자 화면입니다."
>AuthType Basic
>AuthUserFile /uandme/www/uandme/phpMyAdmin/.htpasswd
>AuthGroupFile /dev/null
>require valid-user
.htpasswd 생성
$htpasswd -c /uandme/www/uandme/phpMyAdmin/.htpasswd bigrock
아파치 재시작 -> httpd://phpmyadmin.uandme.co.kr/ 은 아이디/패스워드 인증후 가능