Pound:POUND - REVERSE-PROXY AND LOAD-BALANCER
http://www.apsis.ch/pound/index_html
(当前版本2.6)
PREREQUISITION
====================
$ yum install openssl openssl-devel
====================
INSTALL POUND
====================
cd /usr/local/src
wget "http://www.apsis.ch/pound/Pound-2.5.tgz"
tar zxvf Pound-2.5.tgz
cd Pound-2.5
./configure --prefix=/usr --sysconfdir=/etc --with-ssl=/usr/lib
make
make install
vi /etc/pound.cfg
...
##use syslog-ng to save log
LogFacility local5
LogLevel 3...
ListenHTTP
Address 0.0.0.0
Port 80
Service
BackEnd
Address 192.168.1.1
Port 80
Priority 1
TimeOut 60
End
End
End
##save
START POUND
====================
/usr/sbin/pound
##check pound status
ps aux | grep pound
====================
vi /etc/syslog-ng/syslog-ng.conf
destination d_pound { file("/var/log/pound/access_log"); };
filter f_pound { facility(local5); }
log { source(s_sys); filter(f_pound); destination(d_pound); };
##save
vi /etc/logrotate.d/pound
/var/log/pound/access_log {
daily
missingok
rotate 7
notifempty
postrotate
/etc/init.d/syslog-ng reload > /dev/null
endscript
}
##save
====================