調整nginxの長いドメイン名に役立てたい- VPSのバイブル#15

English 英語(変更)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

編集/上げたいserver_names_hash_bucket_size

WPグリートボックスのアイコンを
こんにちは! このページが便利ですが、あなたのRSSフィードの最新記事を、そうでなければ、 メールで購読することができます。 をお楽しみください... the_guv
サーバー名をハッシュバケットのイメージ

場合は、とのnginxを使っているお客様のドメイン名が32文字を超えるときは、Webサーバーを再起動するエラーメッセージを受け取ることができます。

非常に可能性が高い場合、nginxの長いドメイン名を許可するように指示する必要があります。

そう、あなたのconfigファイルを開きます。 の場合は、パッケージマネージャを使用しnginxのインストールすると、このアクセスすることができます: -

セットアンマネージVPSの更新(4めざせtracker ..)を開設する VPSの聖書

20コピー/貼り付けを実行.. ゼロの英雄からに空のボックスがLinuxサーバをキュートに。

スクロールして全シリーズのインデックスです。

だから、ちょっと、&万歳!ホープ、仮想共有を流すことができます。the_guv

sudo nano /etc/nginx/nginx.conf

For others, who compiled from source:-

sudo nano /usr/local/nginx/conf/nginx.conf

.. and in there, within the http section, that looks like this ..

http {
#various settings here
}
Just add this line:-
server_names_hash_bucket_size 64;

Save the file.

Reboot nginx:-

sudo /etc/init.d/nginx restart

And your longer domain name should work. If the name is longer than 64 characters, swap the '64' value for 128, but I pity your users :)


If you liked that ...
... maybe you'll like these?

.