Server Deployment - apache2.x

Server Deployment - apache2.x

Install the apache2.x on Ubuntu system according to the previous blogs.

1. enable the modules we need
>a2enmod proxy
>a2enmod proxy_balancer
>a2enmod proxy_http

2. configurations in /etc/apache2/httpd.conf
<proxy balancer://easymarket/>
   BalancerMember http://localhost:8083/easymarket loadfactor=1
   BalancerMember http://localhost:8084/easymarket loadfactor=1
   BalancerMember http://localhost:8085/easymarket loadfactor=1
</proxy>

ProxyPass /easymarket balancer://easymarket

<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>

3. verify the website on URLs:
http://localhost:81/easymarket

you can see the status on URLs:
http://localhost:81/balancer-manager

references:
http://hi.baidu.com/luohuazju/blog/item/4da10152741af5040cf3e3fe.html

你可能感兴趣的:(html,ubuntu,Blog)