diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2020-04-24 10:42:12 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2020-04-24 11:18:09 -0400 |
| commit | ddaf5ded8f239ca7ecec367f0ec3c99307852a7a (patch) | |
| tree | a5274db47d384f30924a8d01694c37f80642f889 /nginx/server.conf | |
| parent | 24caba2012753f89b1684c9c2e942cae2b8a9f33 (diff) | |
add initial custom 404 page
Diffstat (limited to 'nginx/server.conf')
| -rw-r--r-- | nginx/server.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/server.conf b/nginx/server.conf index 48d4b306..776c5435 100644 --- a/nginx/server.conf +++ b/nginx/server.conf @@ -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"; |
