From 71aac3ce2b93a00fe64d75b377d70b4c05d36726 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Sat, 23 Jul 2022 01:04:51 -0400 Subject: 404 --- 404.html | 30 ++++++++++++++++++++++++++++++ cyfraeviolae.conf | 5 +++++ local.conf | 5 +++++ 3 files changed, 40 insertions(+) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..1b2e696 --- /dev/null +++ b/404.html @@ -0,0 +1,30 @@ + + + + cyfraeviolae + + + + + + +
+ CYFRAE VIOLAE +
+ + library@cyfraeviolae.org + +

+ 404 Not Found +

+

+ The page you’re looking for is somewhere else, +
+ but while you’re here, consider this +
+ a brief caesura. +

+
+ + + diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index c1a3413..f4ade24 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -43,6 +43,11 @@ server { root /srv/cyfraeviolae; } + error_page 404 /404.html; + location = /404.html { + root /srv/cyfraeviolae; + } + listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/cyfraeviolae.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/cyfraeviolae.org/privkey.pem; diff --git a/local.conf b/local.conf index 53090c9..9d1c825 100644 --- a/local.conf +++ b/local.conf @@ -43,6 +43,11 @@ http { root /home/sy/code/site/cyfraeviolae; } + error_page 404 /404.html; + location = /404.html { + root /home/sy/code/site/cyfraeviolae; + } + listen 9090; } } -- cgit v1.2.3