Contents

System/OS
2003.04.23 10:28

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

Views 12965 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
202 System/OS [apache2] Redirect HTTP to HTTPS file hooni 2022.02.03 680
201 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 784
200 System/OS [linux] The Ultimate Wget Download Guide With 15 Awesome Examples hooni 2020.05.26 799
199 System/OS 개인적으로 쓰고 있는 zshrc 파일 hooni 2022.02.25 824
198 System/OS 개인적으로 쓰고 있는 bash_profile hooni 2015.01.16 842
197 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 878
196 System/OS [mac] How to uninstall MySQL on Mac OS. hooni 2017.11.08 884
195 System/OS 맥에서 포트 확인하고 닫기 (mac) hooni 2022.03.22 890
194 System/OS [virtualbox] VirtualBox에 Ubuntu 설치하기 file hooni 2019.11.22 908
193 System/OS 콘솔에서 패스워드 걸린 zip 압축하는 명령 hooni 2018.03.02 937
192 System/OS [펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들 file hooni 2020.10.15 943
191 System/OS [mac] VirtualBox 실행 스크립트와 bash_profile 설정 file hooni 2020.07.08 954
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17