Views 14153 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. 압축을 막 풀은 소스루트에서

    $ tar xvzfp apache_1.3.9.tar.Z
    $ cd apache1.3.9
    # status 모듈을 추가 
    $ vi Apache_Home/src/Configuration 
      Rule STATUS=yes                       /* Yes 로 되어 있는지 확인한다 */
      Module status_module mod_status.o     /* status 모듈 추가 */  

2. 재 모듈 컴파일
    $ ./configure --enable-rule=SHARED_CORE --enable-module=so --prefix=/apache --add-module=Apache_Home/src/modules/standard/mod_status.c 
    $ make; make install

3. 인스톨된 아파치루트에서
    $ vi Apache_Home/conf/http.conf
      ServerType standalone
      ResourceConfig conf/srm.conf
      AccessConfig conf/access.conf
      ExtendedStatus On 
      ServerName 192.168.100.2                        # 도메인 대신 웹서버 IP 숫자로 기입
      DirectoryIndex index.htm index.html

    $ vi Apache_Home/conf/access.conf
      <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 192.168.100.1                # 도메인 대신 클라이언트 IP 숫자로 기입, 또는 모두 허락
      </Location> 

    $ /usr/local/apache/bin/apachectl restart

4. 테스팅
    접속:        http://192.168.100.2/server-status 
    갱신주기:        http://192.168.100.2/server-status?refresh=N:N
    정보:        Current Time, Restart Time, Server uptime,Total accesses,CPU Usage등
    주의사항:        만약 refresh 까지만 입력하면, 계속 refresh 를 하여 웹브라우저 사용이 불가능 해진다. 
                status 를 사용하기 위해서는 데몬모드로 아파치가 작동하고 있어야만 한다.
                아파치를 standalone 방식이 아닌 inetd 모드로 아파치를 작동시켰다면 mod_status
                를 사용할 수 없다.

?

List of Articles
No. Category Subject Author Date Views
170 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15232
169 System/OS [linux] APM(apache, php, mysql) + gd 설치순서.. hooni 2003.04.23 18851
168 System/OS [linux] awk 명령어 hooni 2014.03.11 4955
167 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4838
166 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48594
165 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4480
164 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 1688
163 System/OS [linux] CentOS 터미널 언어 설정(한글/영어) hooni 2013.12.22 18513
162 System/OS [linux] DHCP(Dynamic Host Configuration Protocol) 서버 hooni 2003.04.23 13023
161 System/OS [linux] DNS(Domain Name System) 설치, 설정 hooni 2003.04.23 12438
160 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11370
159 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12219
158 System/OS [linux] ipchains 사용예(패킷 필터링) hooni 2003.04.23 14171
157 System/OS [linux] ipchains 옵션 hooni 2003.04.23 13611
156 System/OS [linux] ipfwadm를 이용한 패킷필터링(구버전) hooni 2003.04.23 13015
155 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11335
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13