new 404 page

This commit is contained in:
Rachit Bhargava
2024-01-16 17:06:11 -05:00
parent 768ebbdc75
commit 169ec5ef14
2 changed files with 776 additions and 0 deletions

View File

@@ -90,6 +90,12 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -142,6 +148,7 @@ data:
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
# pass the PHP scripts to FastCGI server listening on socket