awstate -로그인 보안인증
- 프로그래밍/개발새발
- 2019. 9. 27.
Centos 6.x
awstate 설치(자세히/오류해결포함) 및 권한설정-아파치 로그 웹통계 툴
awstate 설치(자세히/오류해결포함) 및 권한설정-아파치 로그 웹통계 툴
1)파일 다운로드 - http://awstats.sourceforge.net ≪다운로드 파일은 이 사이트에서 최신버전확인 -받는 위치는 /root경로 -아래는 다운로드 명령어 wget http://prdownloads.sourceforge.net/awstats/awstats-7..
voidfunction-e.tistory.com
1.개요
Awstate는 보안이슈가 발생할 수 있으니 인증(로그인)을 통해 접속할 수 있게 설정하는게 좋습니다
2.설정방법
1)이전에 설치했던 awstats경로로 갑니다.
cd /usr/local/awstats/wwwroot
2) htaccess편집(해당 파일이 없을것이다. Vi로 편집 ㄱㄱ)
-htaccess 편집
vi .htaccess
-htaccess 내용 추가
AuthType Basic
AuthName “login”
AuthUserFile /usr/local/awstats/wwwroot/.htpasswd
require valid-user
-저장
:wq
3) htaccess 권한 수정
chmod 777 .htaccess
4)암호파일 생성
- 명령어 htpasswd -c /usr/local/awstats/wwwroot/.htpasswd 아이디
Ex)
htpasswd -c /usr/local/awstats/wwwroot/.htpasswd testId
New password: xxxx
Re-type new password: xxxx
5)아파치 설정 변경
-아파치 httpd에서 가상호스팅 설정 변경
Allowoverride All
//htaccess를 읽겠다는뜻
5) 아파치 재시작 후 awstats사이트 접속
service httpd restart
잘안되거나 에러가 생겨 해결이 힘들때는 댓글달아주세요!
같이 해결해봅시다 ㅎㅎ
'프로그래밍 > 개발새발' 카테고리의 다른 글
압타나 설치 오류 (0) | 2021.05.03 |
---|---|
apache 로그 분석 통계 툴 소개 - awstats (0) | 2019.10.04 |
goaccess설치 및 사용방법 오류 해결 - 아파치 로그 웹통계 툴 (0) | 2019.09.26 |
awstate 설치(자세히/오류해결포함) 및 권한설정-아파치 로그 웹통계 툴 (0) | 2019.09.25 |
객체지향 5원칙 : 5.의존성 역전의 원칙 , 의존성 주입이란 무엇인가.. (1) | 2019.09.09 |