config fix

This commit is contained in:
Joby 2024-10-23 21:19:55 -06:00
parent 876dcd4bba
commit 66f88acae1

View file

@ -29,8 +29,15 @@ server {
return 403 "403 Forbidden (IP temporarily banned)\n"; return 403 "403 Forbidden (IP temporarily banned)\n";
} }
# Default error page config # Site-specific error pages
include snippets/error-pages.conf; 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 # Domain-specific error pages
error_page 403 /domain-error-page/403.html; error_page 403 /domain-error-page/403.html;
@ -42,15 +49,8 @@ server {
internal; internal;
} }
# Site-specific error pages # Default error page config
error_page 403 /site-error-page/403.html; include snippets/error-pages.conf;
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;
}
# Apply general rate limit # Apply general rate limit
limit_req zone=general burst=100 nodelay; limit_req zone=general burst=100 nodelay;