When adding new virtual hosts in your nginx configuration file, you can experience this error message:
1 | # nginx -t |
_server_names_hash_bucket_size_ controls the maximum length of a virtual host entry (ie the length of the domain name).
In other words, if your domain names are long, increase this parameter.
You need to add this flag in the _http_
context:
1 | http { |
After increasing the value, test your configuration file and reload nginx:
1 | # nginx -t |