티스토리 뷰

___리눅스

[WEB 관리툴] cband 설치 및 설정

변군 변군이글루 2013. 6. 21. 04:44

Cband 설치 및 설정

 

OS 버전
[root@byungun ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

 

Apachectl 버전
[root@byungun ~]# /usr/local/apache2/bin/apachectl -v
Server version: Apache/2.2.10 (Unix)
Server built: Jul 30 2010 22:09:39

 

1. Cband 설치(mod-cband-0.9.7.5.tgz)
[root@byungun mod-cband-0.9.7.5]# ./configure --with-apxs=/usr/local/apache2/bin/apxs
[root@byungun mod-cband-0.9.7.5]# make && make install

 

2. 모듈 확인(설치 후 자동 생성)
[root@byungun ~]# vi /usr/local/apache2/conf/httpd.conf
LoadModule cband_module modules/mod_cband.so

 

3. httpd.conf mod_cband.c 설정(추가)
[root@byungun ~]# vi /usr/local/apache2/conf/httpd.conf
----------------------------------------------------------------------------------------------
...
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>

<IfModule mod_cband.c>
<Location /cband-status>
SetHandler cband-status
</Location>
<Location /cband-status-me>
SetHandler cband-status-me
</Location>
<Location /~*/cband-status-me>
SetHandler cband-status-me
</Location>
<Location /cband-status>
SetHandler cband-status
Order deny,allow
Deny from all
Allow from all
</Location>
</IfModule>

</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
...
----------------------------------------------------------------------------------------------

 

4. cband 스크립트 작성
[root@byungun ~]# vi /root/cband/cband.sh
----------------------------------------------------------------------------------------------
wget "http://byungun.secdns.co.kr/cband-status?reset=all&refresh=15&unit=" > /dev/null 2>&1

rm -rf /root/cband/cband-status\?refresh=15\&unit=
----------------------------------------------------------------------------------------------

 

5. cron 등록
[root@byungun ~]# crontab -l
----------------------------------------------------------------------------------------------
# cband reset
00 00 * * * /bin/sh /root/cband/cband.sh > /dev/null 2>&1
----------------------------------------------------------------------------------------------

 

6. 웹 페이지 확인
http://byungun.secdns.co.kr/cband-status
http://byungun.secdns.co.kr/cband-status-me

 

 

 

댓글
댓글쓰기 폼