System/OS
2003.04.23 10:28

[linux] 아파치 설치/설정(proxy)

Views 12965 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. 아파치 설치

   $ ./configure  --enable-rule=SHARED_CORE  --enable-module=so  --prefix=/apache
   $ make; make install

2. 프록시 모듈 설정

   $ vi $Apache_Home/src/Configuration 
     Module proxy_module modules/proxy/libproxy.a 

3. 재컴파일

   $ ./configure  --enable-rule=SHARED_CORE  --enable-module=so  --prefix=/apache
   $ make; make install

4. 아파치 환경 조정

   $ vi Apache_Home/conf/http.conf
     ProxyRequests On                         # ProxyRequests: Proxy 로 동작하도록 설정 
     CacheRoot /usr/local/httpd/proxy         # CacheRoot: 캐쉬 파일들이 위치할 경로
     CacheSize 1024                          # CacheSize: 캐쉬 용량 단위 (Kbyte)
     CacheGcInterval 4                  # CacheGcInterval: Garbage Collection 간격, 단위 시간 
     CacheMaxExpire 24                  # CacheMaxExpire: 캐쉬 저장 시간 
     CacheLastModifiedFactor 0.1          # CacheLastModefiedFactor: Expire 기간 산정을 위한 요소 
     CacheDefaultExpire 1                 # CacheDefaultExpire: 캐쉬 디폴트 Expire 시간
     NoCache a_domain.com another_domain.edu joes.garage_sale.com        # NoCache: 캐쉬 하지 않을 사이트 지정  

5. 고급활용

   # ProxyRemote ( 특정 서비스를 원격 호스트로 넘김) 
   예) ProxyRemote http://www.uriel.net/ http://mirror.uriel.net:8080
       ProxyRemote * http://mirror.uriel.net 

   # ProxyPass ( 로컬 디렉토리의 원격 호스트로의 매핑 )
   예) ProxyPass /mirror/uriel http://www.uriel.net

   # ProxyBlock ( Proxy 서비스 금지 사이트 설정 )
   예) ProxyBlock www.hacker.com

?

List of Articles
No. Category Subject Author Date Views
74 System/OS [unix] 유닉스 csh에서 환경변수 등록 hooni 2003.04.23 11697
73 System/OS php.ini 설정 안됐을때.. ㅋㅋ hooni 2013.04.23 11639
72 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11369
71 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 11359
70 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11333
69 System/OS [doc] TCP/IP 강의 자료 (html) file hooni 2013.04.23 11171
68 System/OS [linux] 시스템 데몬 종류와 설명 hooni 2013.04.23 11139
67 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
66 System/OS OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속 file hooni 2013.04.23 10785
65 System/OS [mysql] 시간 관련 SQL구문.. hooni 2013.04.23 10773
64 System/OS [linux] 프로세스의 stat 상태에 대한 설명 hooni 2013.04.23 10756
63 System/OS [perl] 영규가 만든 스크립트.. 하하.. hooni 2013.04.23 10597
62 System/OS [linux] SSH에 대한 기본 설명과 설치/설정 hooni 2013.04.23 10493
61 System/OS [doc] 레드햇 리눅스 메뉴얼 (html버전) file hooni 2013.04.23 10452
60 System/OS [linux] 데비안(debian.org) 리눅스 명령어 예제 hooni 2006.04.23 10422
59 System/OS [unix] AIX쉘 초기 파일 (.cshrc) hooni 2013.04.23 10291
Board Pagination Prev 1 ... 7 8 9 10 11 13 Next
/ 13