1. sudo apt-get install pound
2.edit config file at sudo gedit /etc/pound/pound.cfg
ListenHTTP
#this adress is your computer ip and be careful in setting port number
#port number must not conflict with another port which is using
Address 192.41.170.198
Port 8880
#Try to come up with a useful layer 7 (HTTP-aware) load balancing scenario. For example, you might
#have one server reponsible for all images (URLs ending, say, with .jpg, .gif, or .png) and another
#server responsible for everything else (look at the example in the man page).
checkURL “.*.(gif|jpg)”
## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
xHTTP 0
Service
BackEnd
Address 192.41.170.111
Port 80
Priority 5 #specify priority when we want to use many BackEnd
End
#######add another BackEnd########
BackEnd
Address 192.41.170.112
Port 80
Priority 6
End
BackEnd
Address 192.41.170.110
Port 80
Priority 7
End
#########################
End
End
3.edit default file of pound at sudo gedit /etc/default/pound
change
startup=o
to
startup=1
4.start pound : sudo /etc/init.d/pound start
—————————————————————-