.

Štípnout nginx slouľit Už Domain Names - VPS Biblie # 15

English Angličtina (zmeniť)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

EDIT / zvýšenie server_names_hash_bucket_size

server-mena-hash-vedierko image

Ak používate nginx, a vaše doménové meno presahuje 32 znakov, môže sa zobraziť chybové hlásenie po reštarte webového servera.

Veľmi pravdepodobné, musíte povedať, nginx, aby po dobu dlhšiu doménových mien.

Ak chcete tak urobiť, otvorte konfiguračný súbor. Pre inštaláciu nginx pomocou správcu balíkov, môžete prístup k tomuto sa: --

Nastaviť Unmanaged VPS (4 newbies) .. VPS Biblie

V 20 kopírovať / vložiť kroky .. od nuly k hrdinovi, prázdne políčko cute-Linux ako server.

Prejdite nadol na celej série indexov.

Tak, hej, búda zdieľané virtuálne & viva! Dúfam, že to pomôže. 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?

.