Contents

System/OS
2003.04.23 10:28

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

조회 수 13849 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
180 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 3891
179 System/OS [linux] wget 명령 사용 예제 hooni 2020.05.26 4032
178 System/OS Enable the Develop Menu in Safari file hooni 2017.02.07 4043
177 System/OS SSH Passwordless Login Using SSH Keygen in 5 Easy Steps file hooni 2019.11.22 4112
176 System/OS 콘솔에서 패스워드 걸린 zip 압축하는 명령 hooni 2018.03.02 4259
175 System/OS [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기 1 file hooni 2015.01.04 4414
174 System/OS [apache2] Redirect HTTP to HTTPS file hooni 2022.02.03 4489
173 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 4513
172 System/OS 네트워크 용어 정리 file hooni 2022.11.20 4598
171 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 4957
170 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 5075
169 System/OS [linux] split 명령어 hooni 2014.03.11 5200
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17