.

Tweak Nginx kiszolgálásra Hosszabb Domain Names - VPS Biblia # 15

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

Az EDIT / EMELÉS server_names_hash_bucket_size

szerver-nevek-hash-vödör image

Ha használja Nginx, és a domain név meghaladja a 32 karaktert, akkor egy hibaüzenet jelenik meg, amikor újra a webszervert.

Elég valószínű, meg kell mondani, hogy Nginx hosszabb domain nevet.

Ehhez nyissa meg a konfigurációs fájlt. A telepített Nginx használ csomagkezelő, elérheti ezt: --

Hozzon létre egy Unmanaged VPS (4 Newbies) .. A VPS Biblia

20 copy / paste lépést .. nulláról hős, üres dobozt aranyos-as Linux szerveren.

Görgess le a teljes sorozatot index.

Szóval, hé, shed megoszthassák viva virtuális! 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?

.