feat: add global 404 error page redirect to 404.nhcarrigan.com
Test nginx configuration / Static Analysis (push) Failing after 5s
Test nginx configuration / nginx Syntax Check (push) Successful in 17s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m18s

This commit is contained in:
2026-03-10 12:49:52 -07:00
committed by Naomi Carrigan
parent 2b8748fddb
commit 4270f43d22
3 changed files with 19 additions and 0 deletions
+5
View File
@@ -41,6 +41,11 @@ http {
gzip on; gzip on;
##
# Global Error Pages
##
error_page 404 https://404.nhcarrigan.com;
## ##
# Virtual Host Configs # Virtual Host Configs
## ##
+13
View File
@@ -0,0 +1,13 @@
# 404 error page static site.
server {
listen 443 ssl;
server_name 404.nhcarrigan.com;
ssl_certificate /etc/letsencrypt/live/404.nhcarrigan.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/404.nhcarrigan.com/privkey.pem;
root /home/naomi/404;
location / {
index index.html;
}
}
+1
View File
@@ -0,0 +1 @@
../sites-available/404.conf