Changing server_names_hash_max_size on nginx always back to defaulr value
i am using cpanel with nginx proxy, and i get the following warning when restarting nginx
nginx[3271513]: nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 1024 or server_names_hash_bucket_size: 128; ignoring server_names_hash_bucket_size
then i change server_names_hash_max_size to 16386, but after several time, the value back to 1024
whats wrong about it
-
I have the same problem and yes, that is the file from the documentation. For some reasons, from time to time, it resets the value to default! 0 -
Hello, Same problem to me after making the changes i still get nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 1024 or server_names_hash_bucket_size: 256; ignoring server_names_hash_bucket_size nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 1024 or server_names_hash_bucket_size: 256; ignoring server_names_hash_bucket_size nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 1024 or server_names_hash_bucket_size: 256; ignoring server_names_hash_bucket_size nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 1024 or server_names_hash_bucket_size: 256; ignoring server_names_hash_bucket_size I had to increase this to server_names_hash_max_size 2048; server_names_hash_bucket_size 512; after all ok nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful I dont know if its to high or not. 0 -
I don't think that's too high - I'd expect that to work just fine. 0
Please sign in to leave a comment.
Comments
4 comments