pound
Load balancing HTTP/HTTPS with Pound on Debian 6/Ubuntu
0Pound is a great little load balancer, it's fast, opensource and supports SSL termination, which is great!
InstallConfigurationapt-get install pound
The default configuration should be pretty good for most purposes, but feel free to tweak as you require.
HTTPWe'll first look at load balancing HTTP, in case you don't want or need HTTPS load balancing.
We'll need delete all the content within ListenHTTP block, once done it should look like this
ListenHTTP
End
Now we add an address and port to listen on and finally a line to remove an HTTP header
ListenHTTP
Address 0.0.0.0 # all More >
nginx log real IP from Pound
0Recently I started using Pound as a load balancer to a cluster of nginx servers and found my access logs were filled with the IP address of the load balancer. I did some digging and found the correct way to "fix" this.
First thing you need to do is make sure you remove X-Forwarded-For from Pound
ListenHTTP
... snip ...
... snip ...
HeadRemove "X-Forwarded-For"
End
Once this is done, reload Pound.
Next you need nginx compiled with realip module - http://wiki.nginx.org/NginxHttpRealIpModule
On Ubuntu/Debian servers this module comes by default, otherwise you may have to compile it in yourself More >


Authentication-Results: mx.google.com;[…] 1 week ago