nginx + ip_nonlocal_bind
tristan.griffiths at stomp.com.au
Fri May 1 10:26:55 MSD 2009
We would like to setup our Nginx instances in a HA pair. Using
Heartbeat, we have Nginx listening on virtual addresses on the active
On the passive server, we cannot get Nginx to start up because those
virtual (or floating) address are not configured on the server until
Heartbeat detects a failover condition.
Is Nginx able to bind to a non-local IP address? We've tried setting the
ip_nonlocal_bind kernel option with no luck.
Some important information:
# nginx -v
nginx version: nginx/0.7.53
Starting nginx: [emerg]: bind() to 220.127.116.11:80 failed (98: Address
already in use)
listen 18.104.22.168:80 default;
Any other settings we should provide?
OT: Many thanks for the excellent software.
More information about the nginx