From e628b95ac8df68d16906b3aabe8ee73314953961 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Thu, 27 Jul 2023 02:43:12 +0200 Subject: [PATCH] Send a 404 status code for 404 page (was 200) --- CHANGELOG.md | 4 ++++ Dockerfile | 2 +- src/nginx/common.conf | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f504abd..4e9ef6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Container image version # Note: the version here is from `ELABIMG_VERSION` present in Dockerfile, not the tagged one +# 4.5.1 + +* Send a 404 status code for 404 page (was 200) + # 4.5.0 * Update to alpine:3.18 diff --git a/Dockerfile b/Dockerfile index 1b671eb..79d320c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -128,7 +128,7 @@ RUN abuild-keygen -n -a && abuild && find /home/builder/packages -type f -name ' FROM alpine:3.18 # this is versioning for the container image -ENV ELABIMG_VERSION=4.5.0 +ENV ELABIMG_VERSION=4.5.1 # the target elabftw version is passed with --build-arg # it is a mandatory ARG diff --git a/src/nginx/common.conf b/src/nginx/common.conf index f5a7f9d..3bf2c78 100644 --- a/src/nginx/common.conf +++ b/src/nginx/common.conf @@ -14,7 +14,7 @@ error_page 400 /error-pages/400.html; error_page 401 /error-pages/401.html; error_page 402 /error-pages/402.html; error_page 403 /error-pages/403.html; -error_page 404 = /error-pages/404.html; +error_page 404 =404 /error-pages/404.html; error_page 500 /error-pages/500.html; error_page 501 /error-pages/501.html; error_page 502 /error-pages/502.html;