System/OS
2003.04.23 10:28

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

Views 12965 Votes 0 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
170 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 1688
169 System/OS CentOS 에서 Cacti 설치하기 hooni 2015.01.02 1762
168 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 1804
167 System/OS 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen) hooni 2015.07.21 1898
166 System/OS iptime 공유기 해킹 기술문서 4 file hooni 2015.01.01 1941
165 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 2098
164 System/OS [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기 1 file hooni 2015.01.04 2150
163 System/OS 무료로 HTTPS 적용하기 (Lets' Encrypt) file hooni 2017.02.16 2174
162 System/OS Apache CORS 설정 1 hooni 2020.09.04 2710
161 System/OS How to Setup an Email Server on CentOS 7 hooni 2018.04.05 2779
160 System/OS [android] 초간단 HTTP, POST 전송 샘플 1 file hooni 2017.02.16 3449
159 System/OS Mac에서 Node.js 설치하기 file hooni 2018.09.28 4187
158 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 4286
157 System/OS [linux] split 명령어 hooni 2014.03.11 4305
156 System/OS [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) hooni 2017.12.11 4457
155 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4478
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13