From 4ff641e4f494bc842163aa759de6426dff896eef Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 10 Jan 2020 12:33:33 +0530 Subject: [PATCH] Caddyfile: Route 404 errors on homepage to 404.html Signed-off-by: Harsh Shandilya --- Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Caddyfile b/Caddyfile index 39532e9..b838f18 100644 --- a/Caddyfile +++ b/Caddyfile @@ -33,6 +33,9 @@ https://msfjarvis.dev { import compression_config root /var/www/msfjarvis.dev/ log / /etc/logs/requests.log + errors { + 404 404.html + } } https://bin.msfjarvis.dev { @@ -89,6 +92,9 @@ https://staging.msfjarvis.dev { import base_config import compression_config root /var/www/staging.msfjarvis.dev/ + errors { + 404 404.html + } } https://stats.msfjarvis.dev {