Nginx server_names_hash_bucket_size problem
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:
contentYou can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
