This page has been translated from English
.

قرص Nginx العمل لمدة أطول أسماء النطاقات -- المبادئ الطوعية الكتاب المقدس # 15

English الانجليزية (تغيير)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

تحرير / زيادة server_names_hash_bucket_size

خادم أسماء - البعثرة - دلو الصور

إذا كنت تستخدم nginx ، واسم نطاقك يتجاوز 32 حرفا ، قد تتلقى رسالة خطأ عند إعادة تشغيل خادم الويب.

من المحتمل جدا ، تحتاج إلى معرفة nginx للسماح للأسماء أطول المجال.

للقيام بذلك ، قم بفتح ملف التكوين. لكنت قد قمت بتثبيت Nginx باستخدام حزمة مدير ، يمكنك الوصول إلى هذا بما يلي : --

انشاء قاعدة بيانات الفيروسات أونمنجد (4 نوبي).. الكتاب المقدس المبادئ الطوعية

في 20 نسخ / لصق خطوات.. من صفر إلى بطل ، مربع فارغ لطيف ، وخادم لينكس.

بالتمرير لمؤشر سلسلة كاملة.

لذا ، مهلا ، تسليط المشتركة وتحيا الظاهري! نأمل أن يساعد. 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?

.