잠그고 싶은 폴더로 이동
.htpasswd 파일 만들기아래를 실행하면 비밀번호를 물어보며, 현재 경로에 aha00a이라는 계정만 있는 passwd파일이 만들어지게 된다.
htpasswd -c .htpasswd aha00aNew password: Re-type new password: Adding password for user aha00a
.htpasswd에 추가htpasswd .htpasswd aha00b
New password: Re-type new password: Adding password for user aha00b
.htaccess 파일 만들기디렉터리에 .htaccess 파일을 만들어서 아래와 같이 지정합니다.
AuthType Basic AuthName "AuthName" AuthUserFile <absolute_path>/.htpasswd require valid-user
AuthUserFile에는 절대경로로 지정해야함
인증창이 뜨면 성공
Similar pages by cosine similarity. Words after page name are term frequency.