config update

This commit is contained in:
Joby 2024-10-23 21:14:06 -06:00
parent 00d33e6ea9
commit 710d276083

View file

@ -29,6 +29,26 @@ server {
return 403 "403 Forbidden (IP temporarily banned)\n";
}
# 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;
error_page 404 /domain-error-page/404.html;
error_page 503 /domain-error-page/503.html;
error_page 500 502 504 /domain-error-page/50x.html;
location ^~ /domain-error-page/ {
alias "/var/www/$DOMAIN/error-pages/";
internal;
}
# Default error page config
include snippets/error-pages.conf;
@ -47,26 +67,6 @@ server {
}
root "$site_root/www";
# Domain-specific error pages
error_page 403 /domain-error-page/403.html;
error_page 404 /domain-error-page/404.html;
error_page 503 /domain-error-page/503.html;
error_page 500 502 504 /domain-error-page/50x.html;
location ^~ /domain-error-page/ {
alias "/var/www/$DOMAIN/error-pages/";
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;
}
# Basic settings
index index.html index.htm index.php;
client_max_body_size 20M;