Nginxのバーチャルドメインでエラー


Nginxのバーチャルドメインを設定していてエラーが発生したので、対処法を自分メモ。

/etc/nginx/conf.d/virtual.conf に下記を追記

server {
           listen   80;
           server_name domain1.com;
           access_log /home/demo/public_html/domain1.com/log/access.log;
           error_log /home/demo/public_html/domain1.com/log/error.log;
           location / {
                       root   /home/demo/public_html/domain1.com/public/;
                       index  index.html index.php;
                       }
           }

/etc/init.d/nginx configtest を実行

nginx you should increase server_names_hash_bucket_size 32

エラー発生..

/etc/nginx/nginx.conf のhttpディレクティブに下記を追記

<code>http {
    server_names_hash_bucket_size  64;
    ...
}

桶狭間情報システム

© 2023 Copyright OKESYS. All rights reserverd.