.

Tweak nginx palvella pidemmät Domain Names - VPS Raamattu # 15

English Englanti (muuta)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

EDIT / LISÄYS server_names_hash_bucket_size

server-nimet-hash-bucket image

Jos käytät nginx, ja verkkotunnus on yli 32 merkkiä, näyttöön saattaa tulla virhesanoma, kun käynnistät Web-palvelimen.

Todennäköistä, sinun täytyy kertoa nginx jotta pidempään verkkotunnuksia.

Tehdä niin, avaa config file. On asennettu nginx käyttämällä pakettienhallinta, voit käyttää tätä: --

Perustaa Mediamuuntimet VPS (4 Newbies) .. VPS Raamattu

20 copy / paste toimia .. nollasta sankari, tyhjän ruudun cute-kuin Linux-palvelimelle.

Selaa alas koko sarjan indeksi.

Joten, hei, irtoa jaettu & 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?

.