.

Ugađanje Nginx služiti Dulje Domain Names - Bible VPS # 15

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

EDIT / POVEĆANJE server_names_hash_bucket_size

server-imena-hash-kanta slika

Ako tvoj 'koristeći Nginx, a ime Vaše domene prelazi 32 znakova, vi svibanj dobiti poruku o pogrešci kada ponovo pokrenete web poslužitelja.

Prilično vjerojatno, morate reći Nginx kako bi se omogućilo duže imena domena.

Da biste to učinili, otvorite svoju konfiguracijsku datoteku. Jer ste instalirali Nginx koristeći package manager, možete pristupiti ovoj s: --

Postaviti Unmanaged VPS (4 Newbies) .. VPS Biblija

U 20 copy / paste korake .. od nula do junaka, prazan okvir za sladak-kao Linux poslužitelj.

Svitak prud za punu serije indeksa.

Dakle, hej, prolio zajedničke & Viva virtualna! Nadam se da to pomaž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?

.