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
170 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15238
169 System/OS [linux] APM(apache, php, mysql) + gd 설치순서.. hooni 2003.04.23 18851
168 System/OS [linux] awk 명령어 hooni 2014.03.11 4957
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 4850
166 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48596
165 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4480
164 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 1694
163 System/OS [linux] CentOS 터미널 언어 설정(한글/영어) hooni 2013.12.22 18517
162 System/OS [linux] DHCP(Dynamic Host Configuration Protocol) 서버 hooni 2003.04.23 13024
161 System/OS [linux] DNS(Domain Name System) 설치, 설정 hooni 2003.04.23 12439
160 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11374
159 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12221
158 System/OS [linux] ipchains 사용예(패킷 필터링) hooni 2003.04.23 14177
157 System/OS [linux] ipchains 옵션 hooni 2003.04.23 13617
156 System/OS [linux] ipfwadm를 이용한 패킷필터링(구버전) hooni 2003.04.23 13021
155 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11340
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13