aboutsummaryrefslogtreecommitdiff
path: root/server.sh
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-08-06 04:32:01 +0000
committerhitlerrip <git@hitler.rip>2025-08-06 04:32:01 +0000
commitf6dddd37f2c17e7f979cc272347dca2909579001 (patch)
tree3b078819475aa8ae90abbfc55b5cfacd0a6fb319 /server.sh
parent0307a1b46354abf919b5cb7017258243e3b8e101 (diff)
downloadwebsite-f6dddd37f2c17e7f979cc272347dca2909579001.tar.gz
website-f6dddd37f2c17e7f979cc272347dca2909579001.tar.bz2
website-f6dddd37f2c17e7f979cc272347dca2909579001.zip
404 page
- now generates a 404 page on build - nginx config now points to new 404 page
Diffstat (limited to 'server.sh')
-rwxr-xr-xserver.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.sh b/server.sh
index 2dc7788..d74395a 100755
--- a/server.sh
+++ b/server.sh
@@ -156,6 +156,8 @@ server {
}
root /srv/web;
+ error_page 404 /404.html
+ location = /404.html { internal; }
index index.html;
location / {
try_files \$uri \$uri/ =404;