From 12ca100843a334c56f5b13d876ceab4ac561fa47 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 8 Jul 2023 09:27:52 +0200 Subject: Fix erroneous 200 responses on missing files Revert "Replace metrics with advanced metrics for path-based counters" This reverts commit 3dcd97ff77e9f9f5e3ea2b97b9e15c7c1066859d. --- Caddyfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Caddyfile') diff --git a/Caddyfile b/Caddyfile index 9fce1be..df0cecc 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,14 +4,17 @@ auto_https disable_redirects acme_ca https://acme.zerossl.com/v2/DV90 import globals/* - order advanced_metrics before file_server - order advanced_metrics before reverse_proxy servers :80 { + metrics protocols h1 h2c trusted_proxies static private_ranges } } +:9091 { + metrics +} + http://, http://alanpearce.uk, http://www.alanpearce.uk, @@ -35,9 +38,6 @@ http://aln.pe { } http://alanpearce.eu { - advanced_metrics { - port 9091 - } root * {$SITE_ROOT} file_server { precompressed br zstd gzip -- cgit 1.4.1