.

Tweak Nginx a servire a più nomi di dominio - VPS Bibbia # 15

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

EDIT / AUMENTO server_names_hash_bucket_size

WP Greet Box icon
X
Hi there! Se questa pagina è a portata di mano, è possibile sottoscrivere gli ultimi messaggi di feed RSS, il resto via e-mail. Enjoy ... the_guv
server-nomi-hash-bucket immagine

Se stai usando nginx, e il nome di dominio supera i 32 caratteri, è possibile che venga visualizzato un messaggio di errore quando si riavvia il server web.

Molto probabilmente, è necessario indicare nginx per consentire i nomi di dominio più a lungo.

Per fare ciò, aprire il file di configurazione. Per Nginx è stato installato utilizzando un gestore di pacchetti, si può accedere a questo con: --

Istituire un VPS gestito (4 Newbies) .. La Bibbia VPS

In 20 copia / incolla passi .. da zero a hero, vuota la casella di cute, come server Linux.

Scorrere verso il basso per l'indice completo della serie.

Così, hey, rimessa condivisi e viva virtuale! 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?

.