서버앞단에 reverse 형태의 프록시를 설치해 보겠다...
기존에 squid 를 이용해서 사용해 왔지만 이번에는 apache proxy와 비교해보려고 한다.
※ apache2/modules 폴더
※ Virtual hosts 설정
/usr/local/apache2/con/httpd.conf
#Include conf/extra/httpd-vhosts.conf --> 주석해제
※ httpd-vhosts.conf 설정
<VirtualHost *:80>
ServerName xxx.com
ServerAlias
www.xxx.com ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /
http://xxx.com/ ProxyPassReverse /
http://xxx.com/ RPAFenable On
RPAFsethostname On
RPAFproxy_ips xxx.xxx.xxx.xxx # 프록시로 사용할 아이피 주소
RPAFheader X-Forwarded-For
</VirtualHost>
/etc/hosts 파일에 실제서버가 존재하는곳으로 포워딩 시키게끔.....