2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 17:10:29 +01:00

add nginx config for custom 404 page

This commit is contained in:
Frederik Ring 2019-10-02 10:52:04 +02:00
parent 020b566703
commit 3a4105218b
2 changed files with 9 additions and 2 deletions

View File

@ -45,6 +45,13 @@ http {
location /auditorium/ { location /auditorium/ {
try_files $uri $uri/ /auditorium/index.html; try_files $uri $uri/ /auditorium/index.html;
} }
error_page 404 /404.html;
location = /404.html {
internal;
root /www/data;
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive" always;
}
} }
} }

View File

@ -1,7 +1,7 @@
Title: Page not found | offen Title: Page not found | offen
description: offen is a free and open source analytics software for websites and web applications that allows respectful handling of data. description: offen is a free and open source analytics software for websites and web applications that allows respectful handling of data.
save_as: 404/index.html save_as: 404.html
href: /404/ href: /404.html
![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"} ![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"}