Opened 7 months ago

Closed 7 months ago

#1753 closed enhancement (invalid)

Wrong suggestion: could not build server_names_hash, you should increase server_names_hash_bucket_size: 64

Reported by: kocoten1992@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.14.x
Keywords: server_names_hash_bucket_size Cc:
uname -a: Linux d1 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.14.0 (Ubuntu) built with OpenSSL 1.1.0g 2 Nov 2017 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-FIJPpj/nginx-1.14.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module

Description

Hello,

I have a long domain name, nginx -t suggest change server_names_hash_bucket_size to 64

nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
nginx: configuration file /etc/nginx/nginx.conf test failed

But when already change it to server_names_hash_bucket_size 64, nginx still said the same

Change it to 128, the problem go away (the suggestion was a bit incorrect, it should said 128 instead of 64 when config server_names_hash_bucket_size was already set to 64)

Change History (1)

comment:1 Changed 7 months ago by mdounin

  • Resolution set to invalid
  • Status changed from new to closed

Your reading of the error message is wrong - it doesn't suggest to increase server_names_hash_bucket_size to 64, but instead lists the current value. Note the message contains ":", not "to".

Note: See TracTickets for help on using tickets.