Skip to main content

Changing server_names_hash_max_size on nginx always back to defaulr value

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! When you edit the configuration file, are you changing /etc/nginx/conf.d/ea-nginx.conf as outlined here?
    0
  • AlphaPrime
    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
  • Bidi
    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
  • cPRex Jurassic Moderator
    I don't think that's too high - I'd expect that to work just fine.
    0

Please sign in to leave a comment.