Changing server_names_hash_max_size on nginx always back to defaulr value

lambov

Member
Oct 9, 2016
21
0
51
Earth
cPanel Access Level
Root Administrator
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
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,028
313
cPanel Access Level
Root Administrator
Hey there! When you edit the configuration file, are you changing /etc/nginx/conf.d/ea-nginx.conf as outlined here?