nginx 시작시 아래와 같은 메세지가 나오면

[root@ruo91 ~]# /usr/local/nginx/sbin/nginx
nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32
nginx: configuration file /usr/local/nginx/nginx.conf test failed

 

http 부분에 적절하게 넣어주고 시작 하면 됨.

http {
include mime.types;
default_type application/octet-stream;
types_hash_max_size 2048;
server_names_hash_bucket_size 64;
………….. Blah blah …………..
}

 

잘 됨.

[root@ruo91 ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/nginx.conf test is successful

 

issue
http://trac.nginx.org/nginx/ticket/352