From 5fba8d82e6f264d7b307ebf441c0bb4301759d1b Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 22 Jun 2022 20:46:03 +0100 Subject: [PATCH] Updated conf Signed-off-by: Marcus Noble --- default.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/default.conf b/default.conf index 8e19664..49d5f24 100644 --- a/default.conf +++ b/default.conf @@ -1,6 +1,5 @@ server { listen 80; - listen [::]:80; server_name localhost; rewrite ^/dont-reuse-keys/?$ https://marcusnoble.co.uk/2020-10-03-t-i-l-don-t-reuse-api-keys/ permanent; @@ -15,5 +14,15 @@ server { rewrite ^/yaml-key-spaces/?$ https://marcusnoble.co.uk/2021-05-11-t-i-l-yaml-keys-allow-for-spaces-in-them/ permanent; rewrite ^/yaml-multiline/?$ https://marcusnoble.co.uk/2020-09-17-t-i-l-yaml-multiline-values/ permanent; rewrite ^/?$ https://marcusnoble.co.uk/ permanent; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } }