load balancing with nginx using ip_hash;

vicky007 nginx-forum at nginx.us
Thu Feb 4 18:32:47 MSK 2010


I've experienced strange behavior - I have website with many subdomains and I have nginx set up as load balancer and proxy to apache.

each subdomain is using

proxy_pass         http://apaches;

While upstream apaches is defined as follows:

upstream apaches  {

Today I noticed that one subdomain was going to and another one to I always thought nginx calculates the ip_hash centrally and then it does not matter in how many virtualhosts are there, it always points the ip to the same upstream.

I'm using nginx/0.8.33.

Thank you.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,50505,50505#msg-50505

More information about the nginx mailing list