This repository was archived by the owner on Jul 6, 2023. It is now read-only.
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
clearer error message for nginx -t #593
Closed
Description
Hi,
When testing my nginx.conf with "nginx -t" on CentOS7 I got the feedback that I'd have to set the value of "server_names_hash_bucket_size" to 64.
- There was a misleading colon in that recommendation "server_names_hash_bucket_size: 64;" which does not help when the actual required line would be "server_names_hash_bucket_size 64;". (Without colon after the setting name.)
- The real issue was that the value of 64 is apparently hardcoded. Once I had added the line with "64", "nginx -t" kept saying that I'd have to set the value to 64. This made me investigate if I had edited the wrong file or in a wrong way in a wrong place ... When ultimately just setting the value to 128 did work.
It wouldbe clearer to tell the user:
'Add or change the setting "server_names_hash_bucket_size" in the http section to 64 or a higher base-two value (128, 256, ...)'
Kind regards, Carsten
Metadata
Metadata
Assignees
Labels
No labels