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


?

  1. [mac] Mac OS 패키지 매니저, HomeBrew

    Date2015.01.03 CategorySystem/OS Byhooni Views1328
    Read More
  2. [mac] How to uninstall MySQL on Mac OS.

    Date2017.11.08 CategorySystem/OS Byhooni Views892
    Read More
  3. [mac] Homebrew/rvm/cocoapod setting

    Date2017.07.29 CategorySystem/OS Byhooni Views1005
    Read More
  4. [mac] Charlesproxy 간단한 설정 내용~

    Date2013.11.12 CategorySystem/OS Byhooni Views12335
    Read More
  5. [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’

    Date2022.06.01 CategorySystem/OS Byhooni Views796
    Read More
  6. [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치)

    Date2013.04.23 CategorySystem/OS Byhooni Views13067
    Read More
  7. [linux] 프로세스의 stat 상태에 대한 설명

    Date2013.04.23 CategorySystem/OS Byhooni Views10762
    Read More
  8. [linux] 프로세스 상태확인(ps)

    Date2003.04.23 CategorySystem/OS Byhooni Views12713
    Read More
  9. [linux] 프로그램 설치방법 (내공쌓기)

    Date2003.04.23 CategorySystem/OS Byhooni Views13433
    Read More
  10. [linux] 패킷의 소스 주소 바꾸기

    Date2003.04.23 CategorySystem/OS Byhooni Views18794
    Read More
  11. [linux] 패킷 스니퍼링

    Date2003.04.23 CategorySystem/OS Byhooni Views16325
    Read More
  12. [linux] 파일내 문자열 찾아 바꾸기

    Date2013.04.23 CategorySystem/OS Byhooni Views12195
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 17 Next
/ 17