by-nc-sa     개발자, DBA가 함께 만들어가는 오라클클럽 지식창고!

mod_proxy




mod_proxy

1. mod_proxy 설치

  • apache 설치시 아래 옵션을 추가 합니다.
./configure --prefix=/usr/local/env/apache  --enable-proxy --enable-proxy-http

2. mod_proxy 설정

  • 현재의 apache의 도메인이 www.oracleclub.com 일경우 www.oracleclub.com/examples 로 접속을 하면
    www.gurubee.com/examples로 요청을 하는 예제 입니다.
<VirtualHost *:80>

DocumentRoot /home/oracleclub/public_html
ServerName oracleclub.com
    
# proxy 모듈을 Loading 합니다.
LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_http_module modules/mod_proxy_http.so 
 

# Reverse Proxy 방식
ProxyRequests Off 


<Proxy *> 
Order deny,allow 
Allow from all 
</Proxy> 

ProxyPass /examples         http://www.gurubee.com/examples 
ProxyPassReverse /examples  http://www.gurubee.com/examples 


</VirtualHost>

문서정보

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.