new 404 page
This commit is contained in:
@@ -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
|
||||
|
||||
769
wp/404.html
Normal file
769
wp/404.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user