increasing server_names_hash_bucket_size

Igor Sysoev is at
Wed Feb 27 12:32:41 MSK 2008

On Tue, Feb 26, 2008 at 01:46:12PM -0800, rkmr.em at wrote:

> i have configured nginx for multiple virtual servers, when i start
> nginx, i get this error:
> 2008/02/26 13:44:31 [emerg] 18598#0: could not build the
> server_names_hash, you should increase server_names_hash_bucket_size:
> 32
> if i increase it to 64 or 128 the error is gone and it nginx starts working.
> now how much to increase this ? 64 or 128 or even higher? is there any
> performance effect because of this?
> thanks

You has configured host name that is longer than 27 characters.
You should increase server_names_hash_bucket_size to smallest value,
64 in your case. The smaller the better, however, there are no noticeable
perfomance effect.

Igor Sysoev

More information about the nginx mailing list