diff options
-rw-r--r-- | 404.html | 30 | ||||
-rw-r--r-- | cyfraeviolae.conf | 5 | ||||
-rw-r--r-- | local.conf | 5 |
3 files changed, 40 insertions, 0 deletions
diff --git a/404.html b/404.html new file mode 100644 index 0000000..1b2e696 --- /dev/null +++ b/404.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> + <head> + <title>cyfraeviolae</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico"> + <link rel="stylesheet" href="/static/styles.css"> + </head> + <body> + <div class="container"> + <a class="title" href="/">CYFRAE VIOLAE</a> + <br> + <a href="mailto:library@cyfraeviolae.org" class="contact"> + library@cyfraeviolae.org + </a> + <h3> + 404 Not Found + </h3> + <p> + The page you’re looking for is somewhere else, + <br> + but while you’re here, consider this + <br> + a brief caesura. + </p> + </div> + </body> +</html> + 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; @@ -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; } } |