Merged in feature/MAW-864-update-error-pages (pull request #48)
Feature/MAW-864 update error pages * MAW-864: error page
This commit is contained in:
@@ -87,12 +87,6 @@ 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)
|
||||
{
|
||||
@@ -141,8 +135,8 @@ data:
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
error_page 500 502 503 504 /500.html;
|
||||
location = /500.html {
|
||||
root /usr/share/nginx/subdomain/$subdomain;
|
||||
add_header Cache-Control "no-cache" always;
|
||||
}
|
||||
@@ -264,8 +258,8 @@ data:
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
error_page 500 502 503 504 /500.html;
|
||||
location = /500.html {
|
||||
root /usr/share/nginx/subdomain/www;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user