mirror of
https://github.com/offen/website.git
synced 2024-12-23 05:20:21 +01:00
add nginx config for custom 404 page
This commit is contained in:
parent
020b566703
commit
3a4105218b
@ -45,6 +45,13 @@ http {
|
||||
location /auditorium/ {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
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.
|
||||
save_as: 404/index.html
|
||||
href: /404/
|
||||
save_as: 404.html
|
||||
href: /404.html
|
||||
|
||||
|
||||
![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"}
|
||||
|
Loading…
Reference in New Issue
Block a user