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

后端 未结 4 1589
-上瘾入骨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:17

    This is how I solved:

    cd /etc/nginx/
    
    sudo nano nginx.conf
    
    • --uncomment or add server_names_hash_bucket_size 64 --
    • --increase server_names_hash_bucket_size "164" --
    cd /etc/nginx/sites-available/
    
    sudo nginx -t
    
    
    • if all it's ok
    sudo service nginx restart
    

提交回复
热议问题