Nginx的调整,以应付较域名-车辆定位系统圣经#15

English 英国(更改)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

编辑/增加server_names_hash_bucket_size

服务器的名字,哈希桶的形象

如果您使用nginx的,以及您的域名超过32个字符,您可能会收到错误消息当您重新启动Web服务器。

很可能,你需要告诉nginx的允许更长的域名。

为此,打开您的配置文件。 对于Nginx的安装使用软件包管理器,您可以访问此: -

成立了(4新成员)..非托管车辆定位系统 圣经的车辆定位系统

在20个复制/粘贴操作.. 从零到英雄,空白方块可爱的Linux服务器。

向下的全系列指数。

所以,嘿,下跌共享与虚拟万岁!希望有所帮助。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?

.