Merged in feature/404fix (pull request #20)
Add 404.html with nocache * Add 404.html with nocache Approved-by: Rachit Bhargava
This commit is contained in:
committed by
Rachit Bhargava
parent
1d401bd189
commit
98dfee814e
@@ -91,7 +91,7 @@ data:
|
||||
set $no_cache 0;
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/subdomain/$subdomain;
|
||||
add_header Cache-Control "no-cache" always;
|
||||
}
|
||||
|
||||
@@ -86,6 +86,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)
|
||||
@@ -138,6 +144,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
|
||||
|
||||
@@ -87,6 +87,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)
|
||||
{
|
||||
@@ -138,6 +144,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
|
||||
|
||||
@@ -86,6 +86,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)
|
||||
@@ -138,6 +144,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
|
||||
|
||||
Reference in New Issue
Block a user