bw/nginx add not found page and deployment of error pages
This commit is contained in:
parent
856c9be73f
commit
ab21983a4f
4 changed files with 87 additions and 0 deletions
|
@ -72,6 +72,18 @@ server {
|
|||
% endif
|
||||
add_header Permissions-Policy interest-cohort=();
|
||||
|
||||
error_page 404 /not_found.html;
|
||||
location = /not_found.html {
|
||||
root /var/www/;
|
||||
internal;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /error.html;
|
||||
location = /error.html {
|
||||
root /var/www/;
|
||||
internal;
|
||||
}
|
||||
|
||||
% if ssl == 'letsencrypt':
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/lib/dehydrated/acme-challenges/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue