]> git.kaiwu.me - nginx.git/commitdiff
Improved 50x error page.
authorValentin Bartenev <vbart@nginx.com>
Tue, 11 Sep 2012 12:37:04 +0000 (12:37 +0000)
committerValentin Bartenev <vbart@nginx.com>
Tue, 11 Sep 2012 12:37:04 +0000 (12:37 +0000)
The feature set of the new page:

 - HTML5 compliant;
 - Looks similar to the new "Welcome page" (r4835);
 - Sysadmin hint with a link to the documentation of the "error_log" directive.

docs/html/50x.html

index 836fb2d5aa671ae569ba5550046484b48e394672..f60f5e72d17085f8fa933b7fef4efaaeefa3d69b 100644 (file)
@@ -1,18 +1,21 @@
+<!DOCTYPE html>
 <html>
 <head>
-<title>The page is temporarily unavailable</title>
+<title>Error</title>
 <style>
-body { font-family: Tahoma, Verdana, Arial, sans-serif; }
+    body {
+        width: 35em;
+        margin: 0 auto;
+        font-family: Tahoma, Verdana, Arial, sans-serif;
+    }
 </style>
 </head>
-<body bgcolor="white" text="black">
-<table width="100%" height="100%">
-<tr>
-<td align="center" valign="middle">
-The page you are looking for is temporarily unavailable.<br/>
-Please try again later.
-</td>
-</tr>
-</table>
+<body>
+<h1>An error occurred.</h1>
+<p>Sorry, the page you are looking for is currently unavailable.<br/>
+Please try again later.</p>
+<p>If you are the system administrator of this resource then you should check
+the <a href="http://nginx.org/r/error_log">error log</a> for details.</p>
+<p><em>Faithfully yours, nginx.</em></p>
 </body>
 </html>