nginx报could not build theproxy_headers_hash错误,无法启动

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx报could not build theproxy_headers_hash错误,无法启动相关的知识,希望对你有一定的参考价值。

nginx -t报警告如下:

[emerg]: could not build theproxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512or proxy_headers_hash_bucket_size: 64

 

修改nginx.conf,在http段中加如下面2行:

http{
   ......
   proxy_headers_hash_max_size 51200;
   proxy_headers_hash_bucket_size 6400;
   ....
}


nginx -t 可以发现问题已经解决了。

重启nginx(service nginx restart)即可。


以上是关于nginx报could not build theproxy_headers_hash错误,无法启动的主要内容,如果未能解决你的问题,请参考以下文章

记录Nginx错误could not build the server_names_hash you should increase server_names_hash_bucket_size:

Flutter-flutter run报错Could not build the application for the simulator.

The following artifacts could not be resolved(jenkins打包报错)

flutter Could not find the built application bundle at build/ios/iphoneos/Runner.app.

Cordova使用build命令出错: Could not create the Java Virtual Machine.

eclipse启动报错:Could not create the java virtual machine