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?

.