Opened 7 years ago
Last modified 7 years ago
#1537 new enhancement
Allow for test_types_buffer_size to be set in server configuration
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | 1.13.x |
Keywords: | Cc: | ||
uname -a: | Linux ffswebserver 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux | ||
nginx -V: | build by gcc 4.9.2 (Debian 4.9.2-10+deb8u1) |
Description
As I added a bunch of MIME types to gzip_types in my server block, nginx -t returned I need to increase test_types_hash_bucket_size.
Appearently I can do this in the config for types_hash_bucket_size, but not for test_types_has_bucket_size. This is currently hardcoded.
Could we add the option to configure this setting throught the config file? It might also be relevant to do the same for other test_ settings. My current configuration doenst seem very unusual to me, so I can image more people encounter this limitation after adding some MIME types.
Change History (2)
comment:2 by , 7 years ago
Could you please provide the exact error message you see, and exact configuration snippet which causes it? A message about test_types_hash_bucket_size
is only expected to appear when you are trying to use a MIME type which is too long, and it is more or less trivial to write (an incorrect) configuration which triggers this message unintentionally, see #203. See also #1446.
title should be test_types_hash_bucket_size !
old but possibly relevant forum posts:
http://nginx.2469901.n2.nabble.com/test-types-hash-max-size-td6085723.html