Newbie question on ip_hash

WBrown at WBrown at
Tue Feb 5 15:38:35 UTC 2013

Why does ip_hash only use the first 3 octects of the IP address?

The reason I ask is that we run we servers for a number of schools.  Each 
school is going the be their own subnet, ranging from a /24 to a /20 in 
size.  Since ip_hash will lump everyone from a /24 in the same hash, it 
will direct them to the same server, correct?

If I am correct above, is there any way to create persistent connections 
based on the full IPv4 address? 


William Brown
Core Hosted Application Technical Team and Messaging Team
Technology Services, WNYRIC, Erie 1 BOCES

Confidentiality Notice: 
This electronic message and any attachments may contain confidential or 
privileged information, and is intended only for the individual or entity 
identified above as the addressee. If you are not the addressee (or the 
employee or agent responsible to deliver it to the addressee), or if this 
message has been addressed to you in error, you are hereby notified that 
you may not copy, forward, disclose or use any part of this message or any 
attachments. Please notify the sender immediately by return e-mail or 
telephone and delete this message from your system.

More information about the nginx mailing list