Contents

Views 15146 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
1. 아파치 환경 설정 파일의 편집
   $ vi /usr/local/apache/conf/http.conf
     #AllowOverride None
     #AllowOverride AuthConfig                # 일단 이렇게
     AllowOverride All                        # 안되면 이렇게

2. 암호를 걸고 싶은 디렉토리 내에다 암호파일을 생성
   $ /usr/local/apache/bin/htpasswd -c .htpasswd admin        # 암호파일 처음 생성시
     New password: admin123
     Re-type new password: admin123
   $ /usr/local/apache/bin/htpasswd .htpasswd root                # 암호파일에 두번째 사용자 추가시

3. 암호를 걸고 싶은 디렉토리 내에다 처리파일을 생성
   $ vi .htaccess
     AuthName "staff area”                 # 보호 디렉토리 대표이름
     AuthType Basic                        # 인증 방법
     AuthUserFile /usr/local/etc/httpd/.htpasswd                # 암호 파일 위치        
     require valid-user                        # 특정 사용자만 허용
   예)
   AuthName "사용자 인증..."
   AuthType Basic
   AuthUserFile /usr/local/apache/htdocs/User/Member/Administrator/.htpasswd
   AuthGroupFile  /dev/null                        # 사용자가 많을 경우의 그룹 관리(안함)
   <Limit GET POST>
   require valid-user
   </Limit>
   ErrorDocument 401 ./error.htm                  # 에러시의 출력 문서


?

List of Articles
No. Category Subject Author Date Views
82 System/OS [linux] 리눅스 파일시스템과 디렉토리 설명 hooni 2013.04.23 26934
81 System/OS [linux] 랜카드가 2개 일 때 네트워크 설정 hooni 2003.04.23 30123
80 System/OS [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. hooni 2003.04.23 14780
79 System/OS [linux] 데스크탑환경(GNOME/KDE) 바꾸기.. hooni 2003.04.23 12204
78 System/OS [linux] 데비안(debian.org) 리눅스 명령어 예제 hooni 2006.04.23 10507
77 System/OS [linux] 네트웍 트래픽 모니터링(MRTG) hooni 2003.04.23 42337
76 System/OS [linux] 네트워크 커널 설정.. hooni 2003.04.23 16546
75 System/OS [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정 6 file hooni 2006.04.23 20300
74 System/OS [linux] 기존 환경설정 저장하면서 커널 컴파일.. hooni 2003.04.23 13527
73 System/OS [linux] 기본적인 설정하기(내공쌓기) hooni 2003.04.23 14055
72 System/OS [linux] 기본 명령어 (내공쌓기) hooni 2003.04.23 14380
71 System/OS [linux] 계정관리하기(내공쌓기) hooni 2003.04.23 13313
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 17 Next
/ 17