From 79788e5690e9c601d5b3a4e73d68255f8380b882 Mon Sep 17 00:00:00 2001 From: Andre Bossard Date: Thu, 11 Dec 2014 09:59:13 +0100 Subject: [PATCH] Please increase the server_names_hash_bucket_size I use Dokku in a private environment with very long hostname.... 64 was always a lot to short. --- plugins/nginx-vhosts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/install b/plugins/nginx-vhosts/install index 6ac57aa4f..b83cfb411 100755 --- a/plugins/nginx-vhosts/install +++ b/plugins/nginx-vhosts/install @@ -62,7 +62,7 @@ http { EOF -echo 'server_names_hash_bucket_size 64;' >| /etc/nginx/conf.d/server_names_hash_bucket_size.conf +echo 'server_names_hash_bucket_size 512;' >| /etc/nginx/conf.d/server_names_hash_bucket_size.conf if [[ ! -f "$DOKKU_ROOT/VHOST" ]]; then [[ $(dig +short $(< "$DOKKU_ROOT/HOSTNAME")) ]] && cp "$DOKKU_ROOT/HOSTNAME" "$DOKKU_ROOT/VHOST"