Skip to content

Commit e950f5e

Browse files
committed
Add server_names_hash_bucket_size configuration
Due to the long upstream server names we use, we were getting errors on startup. The errors mentioned that we should increase this value. Error looks something like this ... ``` 2017/10/30 19:48:54 [emerg] 1#1: could not build server_names_hash, you should increase server_names_hash_bucket_size: 64 nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64 ``` Sources: * http://nginx.org/en/docs/http/ngx_http_core_module.html#server_names_hash_bucket_size * nginx/kubernetes-ingress#34
1 parent 1599bff commit e950f5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/http.conf

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ http {
88
tcp_nopush on;
99
client_max_body_size 400m;
1010
client_body_timeout 300s;
11+
server_names_hash_bucket_size 128;
1112

1213
gzip on;
1314
gzip_comp_level 5;

0 commit comments

Comments
 (0)