Browse Source

Add GCL specific error pages

mw_28
Adrian Malacoda 2 years ago
parent
commit
64ec27f1b1
3 changed files with 19 additions and 4 deletions
  1. +7
    -0
      application/errors/404.html
  2. +7
    -0
      application/errors/50x.html
  3. +5
    -4
      configuration/nginx.conf

+ 7
- 0
application/errors/404.html View File

@@ -0,0 +1,7 @@
<html>
<head><title>Glitch City Laboratories - Not Found</title></head>
<body>
<h1>Not Found</h1>
<p>The requested object was not found on the Glitch City Laboratories server.</p>
</body>
</html>

+ 7
- 0
application/errors/50x.html View File

@@ -0,0 +1,7 @@
<html>
<head><title>Glitch City Laboratories - Server Error</title></head>
<body>
<h1>Server Error</h1>
<p>An error has occurred in the Glitch City Laboratories server. This may indicate that the server is under load or that there is a bug in the code.</p>
</body>
</html>

+ 5
- 4
configuration/nginx.conf View File

@@ -20,8 +20,9 @@ http {
location / {
try_files $uri $uri/ /index.html;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;

error_page 404 /application/errors/404.html;
error_page 500 502 503 504 /application/errors/50x.html;

location = /50x.html {
root /usr/share/nginx/www;
@@ -71,8 +72,8 @@ http {
return 302 $scheme://$host/index.php?topic=$1;
}

error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
error_page 404 /application/errors/404.html;
error_page 500 502 503 504 /application/errors/50x.html;

location = /50x.html {
root /usr/share/nginx/www;


Loading…
Cancel
Save