simplify error page configuration
This commit is contained in:
parent
d069da17c8
commit
682c078830
@ -112,8 +112,8 @@ http {
|
|||||||
server_name grapheneos.org;
|
server_name grapheneos.org;
|
||||||
|
|
||||||
root /srv/grapheneos.org;
|
root /srv/grapheneos.org;
|
||||||
error_page 403 =404 /404.html;
|
error_page 403 =404 /404;
|
||||||
error_page 404 /404.html;
|
error_page 404 /404;
|
||||||
|
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
@ -215,13 +215,7 @@ http {
|
|||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
include snippets/preload.conf;
|
include snippets/preload.conf;
|
||||||
}
|
try_files $uri.html =404;
|
||||||
|
|
||||||
location = /404.html {
|
|
||||||
internal;
|
|
||||||
include snippets/security-headers.conf;
|
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
|
||||||
include snippets/preload.conf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# broken link (now fixed) on https://noagendaphone.com/ with UTF-8 replacement character
|
# broken link (now fixed) on https://noagendaphone.com/ with UTF-8 replacement character
|
||||||
|
Loading…
x
Reference in New Issue
Block a user