Views 15084 Votes 0 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                  # 에러시의 출력 문서

?

  1. [linux] 기존 환경설정 저장하면서 커널 컴파일..

  2. [linux] 기본적인 설정하기(내공쌓기)

  3. [linux] 기본 명령어 (내공쌓기)

  4. [linux] 계정관리하기(내공쌓기)

  5. [linux] 간단한 vi편집기 사용 명령

  6. [linux] 간단한 NAT 설정 script

  7. [linux] 간단한 find 명령어 설명(업데이트 해야 함)

  8. [linux] yum 업데이트 시 커널 제외하기

  9. [linux] X환경 GNOME에서 KDE로 바꾸는 법..

  10. [linux] Xwindow/Xmanager 사용

  11. [linux] wget 명령 사용 예제

  12. [linux] vi 편집기 간단한 명령과 환경설정

  13. [linux] The Ultimate Wget Download Guide With 15 Awesome Examples

  14. [linux] ssh에서 원격 파일 전송하기..

  15. [linux] SSH에 대한 기본 설명과 설치/설정

  16. [linux] split 명령어

Board Pagination Prev 1 ... 7 8 9 10 11 13 Next
/ 13