add initial custom 404 page
This commit is contained in:
@@ -24,6 +24,7 @@ server {
|
||||
server_name grapheneos.org;
|
||||
|
||||
root /var/www/html;
|
||||
error_page 404 /404.html;
|
||||
|
||||
charset utf-8;
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
@@ -65,6 +66,10 @@ server {
|
||||
default_type text/plain;
|
||||
}
|
||||
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
|
||||
location ~ "\.(ico|webmanifest)$" {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
|
||||
Reference in New Issue
Block a user