내부 사용자들이 간단하게 인증할 수 있는 방법


mod_auth_basic.so
mod_authn_file.so

없다면 설치하고 httpd.conf에서 loadmodule할것

 


설정된 디렉토리 내용 안에 아래 추가.

 httpd.conf 설정은 아래와 같이 한다.

        AllowOverride All
        Order allow,deny
        Allow from all
AuthType Basic
AuthName "test admin"
AuthUserFile "/경로는알아서/apache/conf/.htpasswd"
require valid-user

보안상 .htpasswd 파일은 아파치 conf밑에 두도록 한다.
htpasswd -c .htpasswd 아이디
 


+ Recent posts