nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size

后端 未结 4 1588
-上瘾入骨i
-上瘾入骨i 2020-12-23 09:05

I\'m in the process of setting up a new server. The http-Server of my choice is NGINX. I want to add the domain audi-freunde-einbeck.de as a virtual host. I alr

4条回答
  •  天涯浪人
    2020-12-23 09:31

    • open /etc/nginx/nginx.conf with write privileges
    • uncomment or add server_names_hash_bucket_size 64;
    • restart nginx sudo service nginx restart

    If the error still persists:

    • increase server_names_hash_bucket_size in steps 128, 256, 512, and so on (increasing by a power of 2 each time). eg. server_names_hash_bucket_size 128;
    • restart the nginx each time until error is gone (error will always be the same no matter what value you already set)

提交回复
热议问题