From 3ab9e97549f28d62fbedf559cb14801ca23e43cb Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 18 Feb 2023 12:29:29 -0500 Subject: [PATCH] work around nginx keepalive configuration bug https://trac.nginx.org/nginx/ticket/2012 --- nginx/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 046dce9f..a7337574 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -100,7 +100,10 @@ http { listen 80 default_server backlog=4096; listen [::]:80 default_server backlog=4096; keepalive_timeout 0; - return 404; + # https://trac.nginx.org/nginx/ticket/2012 + location / { + return 404; + } } server {