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

?

List of Articles
No. Category Subject Author Date Views
74 System/OS [mac] How to uninstall MySQL on Mac OS. hooni 2017.11.08 884
73 System/OS [mac] Mac OS 패키지 매니저, HomeBrew file hooni 2015.01.03 1314
72 System/OS [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법 file hooni 2016.10.03 1442
71 System/OS [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로) file hooni 2013.10.08 36989
70 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 878
69 System/OS [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항 file hooni 2015.01.04 1522
68 System/OS [mac] OSX(맥) 단축키 설명 ㅎㅎ file hooni 2013.04.23 29565
67 System/OS [mac] SVN 1.8 업데이트 방법 hooni 2013.09.24 14561
66 System/OS [mac] VirtualBox 실행 스크립트와 bash_profile 설정 file hooni 2020.07.08 955
65 System/OS [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기 file hooni 2014.03.12 5117
64 System/OS [mac] 맥(OSX)에서 root 패스워드 설정하기 hooni 2013.04.23 22418
63 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 4286
62 System/OS [mac] 맥에서 APM(apache,php,mysql) 구성하기 hooni 2013.04.23 38616
61 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 1804
60 System/OS [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~ hooni 2013.10.10 30880
59 System/OS [mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리 hooni 2013.07.10 18797
Board Pagination Prev 1 ... 7 8 9 10 11 13 Next
/ 13