From 66f88acae1e577433df0d62ba7b9c396118c7d3f Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Wed, 23 Oct 2024 21:19:55 -0600 Subject: [PATCH] config fix --- site-config.conf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/site-config.conf b/site-config.conf index af35106..796b267 100644 --- a/site-config.conf +++ b/site-config.conf @@ -29,8 +29,15 @@ server { return 403 "403 Forbidden (IP temporarily banned)\n"; } - # Default error page config - include snippets/error-pages.conf; + # Site-specific error pages + error_page 403 /site-error-page/403.html; + error_page 404 /site-error-page/404.html; + error_page 503 /site-error-page/503.html; + error_page 500 502 504 /site-error-page/50x.html; + location ^~ /site-error-page/ { + alias "$site_root/error-pages/"; + internal; + } # Domain-specific error pages error_page 403 /domain-error-page/403.html; @@ -42,15 +49,8 @@ server { internal; } - # Site-specific error pages - error_page 403 /site-error-page/403.html; - error_page 404 /site-error-page/404.html; - error_page 503 /site-error-page/503.html; - error_page 500 502 504 /site-error-page/50x.html; - location ^~ /site-error-page/ { - alias "$site_root/error-pages/"; - internal; - } + # Default error page config + include snippets/error-pages.conf; # Apply general rate limit limit_req zone=general burst=100 nodelay;