From e3c124df80035d3e322f93e436699b7aa3aa0304 Mon Sep 17 00:00:00 2001 From: prance Date: Sun, 30 Jan 2022 20:23:32 +0100 Subject: [PATCH] change error page --- MUOR/MUOR/configs/muor.conf | 15 +++++++++++---- MUOR/MUOR/configs/muor_before_location_block.conf | 13 ++++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/MUOR/MUOR/configs/muor.conf b/MUOR/MUOR/configs/muor.conf index e59658976..00301cfef 100644 --- a/MUOR/MUOR/configs/muor.conf +++ b/MUOR/MUOR/configs/muor.conf @@ -39,11 +39,18 @@ server { # add_header Cache-Control "public"; # } - error_page 500 502 503 504 404 403 /loader.html; +# error_page 500 502 503 504 404 403 /loader.html; - location = /loader.html { - root /home/randomsec/RandomSec/MUOR/MUOR/configs/; - internal; + location = /loader.html { + root /home/randomsec/RandomSec/MUOR/MUOR/configs; + } + + location /static/ { + alias /home/randomsec/RandomSec/staticfiles/; # your Django project's static files - amend as required + expires 2d; + access_log off; + add_header Pragma public; + add_header Cache-Control "public"; } location /logout/ { diff --git a/MUOR/MUOR/configs/muor_before_location_block.conf b/MUOR/MUOR/configs/muor_before_location_block.conf index 4b6b04e58..8a1a32089 100644 --- a/MUOR/MUOR/configs/muor_before_location_block.conf +++ b/MUOR/MUOR/configs/muor_before_location_block.conf @@ -40,11 +40,18 @@ server { # add_header Cache-Control "public"; # } - error_page 500 502 503 504 404 403 /loader.html; +# error_page 500 502 503 504 404 403 /loader.html; location = /loader.html { - root /home/randomsec/RandomSec/MUOR/MUOR/configs/; - internal; + root /home/randomsec/RandomSec/MUOR/MUOR/configs; + } + + location /static/ { + alias /home/randomsec/RandomSec/staticfiles/; # your Django project's static files - amend as required + expires 2d; + access_log off; + add_header Pragma public; + add_header Cache-Control "public"; } location /logout/ {