Contents

System/OS
2003.04.23 10:28

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

조회 수 12965 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
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
번호 분류 제목 글쓴이 날짜 조회 수
202 System/OS Apache CORS 설정 1 hooni 2020.09.04 2708
201 System/OS asx미디어 정보 기록.. hooni 2003.04.23 20533
200 System/OS CentOS 6.5 USB 설치 6 file hooni 2013.12.18 37674
199 System/OS CentOS 에서 Cacti 설치하기 hooni 2015.01.02 1760
198 System/OS Configure Postfix to Use Gmail SMTP on Ubuntu 18.04 file hooni 2020.02.07 1246
197 System/OS Enable Safari Hidden Debug Menu in Mac OS X file hooni 2017.02.07 1140
196 System/OS Enable the Develop Menu in Safari file hooni 2017.02.07 1067
195 System/OS How to Install and Use wget on Mac file hooni 2020.09.03 1275
194 System/OS How to Setup an Email Server on CentOS 7 hooni 2018.04.05 2777
193 System/OS HTTP 프로토콜 (브라우저와 웹서버 간의 통신) hooni 2003.04.23 48250
192 System/OS HTTPS와 SSL 인증서 file hooni 2014.03.11 7544
191 System/OS iptime 공유기 해킹 기술문서 4 file hooni 2015.01.01 1941
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17