From d024166efe76f96a8a6fb86639d422b539fb62e7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 9 Feb 2019 12:03:13 +0100 Subject: [PATCH] Fixed 404 in docker container --- nginx.conf | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index ebc9f3a9..7208204b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -36,5 +36,19 @@ http { gzip_min_length 256; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml; - include /etc/nginx/conf.d/*.conf; + server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + try_files $uri $uri/ /; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } }