From 00b5b4d0c19fe4447180d185e83891fc0fd20be6 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 4 Jan 2019 03:24:14 -0700 Subject: [PATCH] used error_pages snippet --- etc/nginx/availableSites/redirectHTTPS.conf | 12 +----------- etc/nginx/availableSites/redirectHTTPS_LE.conf | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/etc/nginx/availableSites/redirectHTTPS.conf b/etc/nginx/availableSites/redirectHTTPS.conf index 62b04f2..4de6f36 100644 --- a/etc/nginx/availableSites/redirectHTTPS.conf +++ b/etc/nginx/availableSites/redirectHTTPS.conf @@ -14,15 +14,5 @@ server { return 301 https://$host$request_uri; # error pages - error_page 404 /404.html; - location = /404.html { - root /usr/share/nginx/html; - internal; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - internal; - } + include /etc/nginx/snippets/error_pages.conf; } diff --git a/etc/nginx/availableSites/redirectHTTPS_LE.conf b/etc/nginx/availableSites/redirectHTTPS_LE.conf index 4cf0617..a6f4f69 100644 --- a/etc/nginx/availableSites/redirectHTTPS_LE.conf +++ b/etc/nginx/availableSites/redirectHTTPS_LE.conf @@ -28,15 +28,5 @@ server { } # error pages - error_page 404 /404.html; - location = /404.html { - root /usr/share/nginx/html; - internal; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - internal; - } + include /etc/nginx/snippets/error_pages.conf; }