1

Use custom 404 page for each presentation

This commit is contained in:
Jake Howard 2024-06-08 15:15:34 +01:00
parent c516350eb2
commit 24571f8403
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -26,9 +26,6 @@ server {
# Show 403 as 404
error_page 403 =404;
# Custom 404
error_page 404 /404.html;
# Kick malicious clients sooner
client_header_timeout 10s;
client_body_timeout 10s;
@ -39,6 +36,11 @@ server {
return 302 https://theorangeone.net;
}
location ~ ^/([0-9a-z]+)/.* {
# Custom 404 for each presentation
error_page 403 404 =404 /$1/404.html;
}
# Inject plausible
sub_filter "</body>" "<script defer data-domain='$host' src='https://elbisualp.theorangeone.net/js/script.js'></script></body>";
sub_filter_once on;