20
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nginxでサーバ名が長いって怒られた

Posted at

日本語ドメインなどnginxで長いサーバ名の場合、デフォルトで設置したままだと、こんなエラーが出る時があります。

could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

サーバ名が長すぎてハッシュサイズに収まんねーよという感じ?

そんな時は、nginxの設定ファイルを弄りましょう。

vi /etc/nginx/nginx.conf

http {
・・・
    keepalive_timeout  65;

# この記述をこの下辺りに入れておけばOK
    server_names_hash_bucket_size 64;

・・・
}

よいnginxライフを!

20
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?