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/ {