From 10bc94f6db89f54c03e962f7e9a35718182680ce Mon Sep 17 00:00:00 2001 From: Max Claus Nunes Date: Sat, 13 Dec 2014 10:00:45 -0200 Subject: [PATCH] =?UTF-8?q?fixes=20problem=20to=20set=20server=20name=20ma?= =?UTF-8?q?x=20length=E2=80=A6=20current=20base=20image=20does=20not=20hav?= =?UTF-8?q?e=20commented=20configurations=20which=20means=20is=20impossibl?= =?UTF-8?q?e=20to=20use=20the=20previous=20configuration=20to=20set=20the?= =?UTF-8?q?=20server=20name=20max=20length?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fdd5c82..92bad5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update \ # Configure Nginx and apply fix for long server names RUN echo "daemon off;" >> /etc/nginx/nginx.conf \ - && sed -i 's/# server_names_hash_bucket/server_names_hash_bucket/g' /etc/nginx/nginx.conf + && sed -i 's/^http {/&\n server_names_hash_bucket_size 64;/g' /etc/nginx/nginx.conf # Install Forego RUN wget -P /usr/local/bin https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/forego \