내부 사용자들이 간단하게 인증할 수 있는 방법
mod_auth_basic.so
mod_authn_file.so
없다면 설치하고 httpd.conf에서 loadmodule할것
설정된 디렉토리 내용 안에 아래 추가.
httpd.conf 설정은 아래와 같이 한다. AllowOverride AllOrder allow,deny Allow from all AuthType Basic AuthName "test admin" AuthUserFile "/경로는알아서/apache/conf/.htpasswd" require valid-user |
보안상 .htpasswd 파일은 아파치 conf밑에 두도록 한다.
htpasswd -c .htpasswd 아이디'Apache & Nginx' 카테고리의 다른 글
[Apache] 프로세스 생성 방식에 따른 비교 (0) | 2015.09.03 |
---|