Apache Reverse Proxy 로드 발란스

yves1의 이미지

안녕하세요..

Apache를 가지고 Reverse Proxy를 설정했습니다.

conf.d 디렉토리의 vir.conf 화일에

RewriteEngine off RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ RewriteRule ^(.*)$ http://www.test.com ProxyPass / http://10.10.10.1 ProxyPassReverse / http://10.10.10.1 CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/80access_log.%Y%m%d 1024M +540" common env=!dontlog ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/80error_log.%Y-%m-%d 1024M +540" ErrorLog /var/log/httpd/error_log

위와 같이 설정하여 해당 url에 대해서 reverse proxy 설정을 했는대요.

리얼 웹서버를 하나더 구성해서 Apache가 10.10.10.1 과 10.10.10.2 에 대해서 로드 발란싱이 되도록 설정하고 싶습니다.

ProxyPass / http://10.10.10.2
ProxyPassReverse / http://10.10.10.2

위의 내용을 vir.conf 화일에 추가해도 10.10.10.1 에 대해서만 요청을 하네요..

Apache 데몬을 이용하여 Reverse Proxy 설정을 두개의 리얼 웹서버에 대해서 설정하는 방법 확인해 주세요..

감사합니다.

다콘의 이미지

yves1의 이미지

감사합니다.. ^^