Pound Reverse Proxy Installation With Google Performance Tools and PCRE
Pound Reverse Proxy Installation With Google Performance Tools and PCRE
Introduction :
The Pound program is a reverse proxy, load balancer and HTTPS front-end
for Web server(s). Pound was developed to enable distributing the load among
several Web-servers and to allow for a convenient SSL wrapper for those Web
servers that do not offer it natively. Pound is distributed under the GPL - no
warranty, it's free to use, copy and give away.
I will install pound to serve many asp's on single IP . and use pound and reverse
proxy and load balancer.
Software :
Pound-2.2.7
PCRE-devel ( Highly recommended)
Google perftools 0.8 ( Highly recommended )
Installation :
I would be installing pound against PCRE and tcmalloc thread allocation library
provided by google. Pound README suggests this about these requirements
" The PCRE package is strongly recommended .... If the PCRE package is available
Pound will link against it. This will provide a significant performance boost. "
PCRE-devel installation :
# mkdir ~/software
# cd ~/software
# wget http://google-perftools.googlecode.com/files/google-perftools-0.8.tar.gz
# tar xzf .tar.gz
# cd google-perftools-0.8
# ./configure --prefix/home/atif/googlelib
# make
it gave an error
after that
# make clean
# make
# mkdir /home/atif/googlelib
# make install
# ldconfig
( assumin that poind configure will find these , but it didn't happen u will see
later )
Pound installation :
# cd ~/software
# wget http://www.apsis.ch/pound/Pound-2.2.7.tgz
# tar xzf Pound-2.2.7.tgz
# cd Pound-2.2.7
# ./configure --prefix=/home/atif/pound
Although PCRE-devel was installed with rpm and googlelib was in ld_library_path
and ld.so.conf , configure script of pound could not find both and was not linking
against these libraries.
So i had to export LDFLAGS and CPPFLAGS before running configure script which
than found both libraries and linked against them .
# export LDFLAGS="-L/home/atif/googlelib/lib"
# export CPPFLAGS="-I/usr/include/pcre"
# ./configure --prefix=/home/atif/pound
# make
# make install
Thats it! you can now start pound with your configuration files.