买了一个8888888888888888888888888888888888888888888888888888888888888.com 的域名 算算61位加.com 一共是65位数
结果nginx 就直接报错

[[email protected] conf.d]# nginx  -t
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

百度了一下说是加个这个

在配置文件的http{}段增加一行配置

server_names_hash_bucket_size 512;

然后打开nginx.conf添加
nginx域名过长报错

[[email protected] nginx]# nginx  -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[[email protected] nginx]# nginx  -s reload

测试通过~1 OK! 访问一下看看~
nginx域名过长报错

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-11-23
  • 2022-01-07
  • 2022-02-19
  • 2022-01-22
  • 2021-12-11
猜你喜欢
  • 2021-06-05
  • 2021-08-06
  • 2021-07-03
  • 2021-04-21
  • 2021-11-09
  • 2021-12-30
相关资源
相似解决方案