generated from nhcarrigan/template
feat: add global 404 error page redirect to 404.nhcarrigan.com
This commit is contained in:
@@ -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
|
||||||
##
|
##
|
||||||
|
|||||||
@@ -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
@@ -0,0 +1 @@
|
|||||||
|
../sites-available/404.conf
|
||||||
Reference in New Issue
Block a user