change error page

This commit is contained in:
prance 2022-01-30 20:23:32 +01:00
parent b466d09c18
commit e3c124df80
2 changed files with 21 additions and 7 deletions

View File

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

View File

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