.

Tweak nginx pentru a servi Domain Names mai mult timp - VPS Biblie # 15

English În limba engleză (schimbã)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Edit / MAJORARE server_names_hash_bucket_size

server-nume-hash-cupa imagine

Dacă utilizaţi nginx, precum şi numele dvs. de domeniu depăşeşte 32 de caractere, este posibil să primiţi un mesaj de eroare când reporniţi serverul de web.

Destul de probabil, va trebui să-i spuneţi nginx, pentru a permite nume de domenii mai mult timp.

Pentru a face acest lucru, deschideţi fişierul de configurare. Pentru tine nginx instalat folosind un manager de pachete, puteţi accesa acest lucru cu: --

Înfiinţat un VPS Unmanaged (4 Newbies) .. Biblia VPS

În 20 de copy / paste paşi .. de la zero la erou, caseta de gol pentru a-cute ca server Linux.

Derulaţi în jos pentru indicele seria completă.

Deci, hei, vărsat la comun si Viva virtual! 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?

.