ragged-rigid
ragged-rigid
ragged-rigid
ragged-rigid
Nginx server_names_hash_bucket_size problem @ www.digitalpains.net
service

Nginx server_names_hash_bucket_size problem

language

Today I defined a new site on my Nginx server. This new site I defined has a long domain name.
When I tried to restart the Nginx I got the following error message.

Restarting nginx: 2010/05/03 09:25:08 [emerg] 4452#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx.


If you also receive this eror message you fix it by adding the server_names_hash_bucket_size directive to your nginx.conf file.

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
.
.
.
server_names_hash_bucket_size 64;
.
.
.

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

For more information and information about other server directives you can check the official documents.

Related posts:

  1. Getting started with Nginx

content

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

 
e-mail
trademarks
news