.

Tweak Nginx para Servir Longer Domain Names - VPS Bible # 15

English Inglês (mudar)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

EDIT / AUMENTO server_names_hash_bucket_size

servidor de nomes de hash balde de imagem

Se você estiver usando nginx, e seu nome de domínio exceder 32 caracteres, poderá receber uma mensagem de erro quando você reiniciar o servidor web.

Muito provavelmente, você tem de dizer o nginx para permitir mais nomes de domínio.

Para fazer isso, abra o arquivo de configuração. Para que você instalou Nginx usando um gerenciador de pacotes, você pode acessar este com: --

Configurar uma VPS gerenciada (4 Newbies) .. A Bíblia VPS

Em 20 copiar / colar passos .. de zero a herói, caixa em branco para cute-como servidor Linux.

Role para baixo para o índice série completa.

Então, hey, derramou compartilhada e 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?

.