Nginx error : could not build the server_names_hash, you should increase server_names_hash_bucket_size

  • Error:
[emerg]could not build the server_names_hash, 
you should increase server_names_hash_bucket_size
  • Solution:

In nginx.conf :


http {
	include       /etc/nginx/mime.types;
	default_type  application/octet-stream;
	# --- Add these two lines --- 
	server_names_hash_bucket_size 128;
	server_names_hash_max_size 1024;
			.
			. 
	}