Contents

System/OS
2003.04.23 10:28

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

조회 수 13015 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
1101 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 953
1100 Algorithm OCB5 Injection 앗싸뵹! ㅋㅋ file hooni 2014.07.01 956
1099 Develop [android] Android N requires the IDE to be running with Java 1.8 or later 오류 hooni 2016.08.30 957
1098 Develop [ios] NSString, RegularExpression Find/Replace hooni 2017.04.14 962
1097 Develop [android] N-Puzzle 게임 file hooni 2015.07.09 965
1096 Develop [git] 쉬운 버전관리 Git 설명 hooni 2015.08.18 966
1095 Develop [c] 기막힌 정렬 코드 ㅋㄷ file hooni 2015.10.13 971
1094 Develop [ios] 아이폰 앱 이름 및 버전 정보 hooni 2015.03.24 977
1093 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 977
1092 Develop [c] 이진 탐색 두 가지 코드 (재귀/반복) file hooni 2015.06.26 978
1091 Develop [ios] UIWebView에서 로컬에 있는 html 파일 불러오기 hooni 2015.02.10 981
1090 PPT [ppt] Information Security 발표 자료 (@Team Study 2012.11.15) file hooni 2015.07.22 983
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 98 Next
/ 98