Sunday, September 13, 2015

Pound - Reverse Proxy Server


Pound is a reverse-proxy load balancing server. It accepts requests from HTTP / HTTPS clients and distributes them to one or more Web servers. The HTTPS requests are decrypted and passed to the back-ends as plain HTTP. The Pound Reverse Proxy server will allow an administrator to run two or more Web Servers behind one Router, with one static WAN IP, for delivering all of the different Websites that are Hosted on the servers behind the Router.

[1] Install Pound.

[root@pound ~]#
yum --enablerepo=epel -y install Pound

[2]   Configure Pound.

[root@pound ~]#
mv /etc/pound.cfg /etc/pound.cfg.org

[root@pound ~]#
vi /etc/pound.cfg
User "pound"
Group "pound"
# log level (max: 5)

LogLevel 3
# specify LogFacility

LogFacility local1
# interval of heartbeat - seconds

Alive 30

# define frontend

ListenHTTP
    Address 0.0.0.0
    Port 80
End

# define backend

Service
    BackEnd
       # backend server's IP address

        Address  172.16.0.12
       # backend server's port

        Port     80
       # set priority (value is 1-9, max 9)

        Priority 5
    End

    BackEnd
        Address  172.16.0.13
        Port     80
        Priority 5
    End

    BackEnd
        Address  172.16.0.14
        Port     80
        Priority 5
    End
End

[root@pound ~]#
/etc/rc.d/init.d/pound start

Starting Pound: starting...
[ OK ]
[root@pound ~]#
chkconfig pound on

No comments:

Post a Comment