updated config
This commit is contained in:
parent
710d276083
commit
876dcd4bba
1 changed files with 11 additions and 11 deletions
|
@ -29,15 +29,8 @@ 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;
|
||||
}
|
||||
# Default error page config
|
||||
include snippets/error-pages.conf;
|
||||
|
||||
# Domain-specific error pages
|
||||
error_page 403 /domain-error-page/403.html;
|
||||
|
@ -49,8 +42,15 @@ server {
|
|||
internal;
|
||||
}
|
||||
|
||||
# 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;
|
||||
}
|
||||
|
||||
# Apply general rate limit
|
||||
limit_req zone=general burst=100 nodelay;
|
||||
|
|
Loading…
Reference in a new issue