This page has been translated from English
.

Tweak Nginx לשרת ארוכים שמות מתחם - VPS התנ"ך # 15

English אנגלית (שינוי)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

ערוך / גידול server_names_hash_bucket_size

שרת שמות-hash-דלי התמונה

אם אתה משתמש Nginx, ואת שם התחום שלך עולה על 32 תווים, אתה עלול לקבל הודעת שגיאה בעת הפעלה מחדש של שרת האינטרנט.

סביר, אתה צריך להגיד Nginx כדי לאפשר שמות מתחם עוד.

כדי לעשות זאת, לפתוח את הקובץ config שלך. עבור התקנת Nginx באמצעות מנהל החבילה, אתה יכול לגשת עם זה: --

להגדיר VPS שאינם מנוהלים (4 newbies) .. התנ"ך VPS

בעותק 20 / צעדים להדביק .. מאפס לגיבור, התיבה ריקה כדי חמוד-כשרת לינוקס.

גלול מטה על מדד סדרת מלא.

אז, היי, מחסן משותף & Viva וירטואלי! Hope it helps. 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?

.