Skip to content
Browse files
vesta-nginx 404 error handler
  • Loading branch information
serghey-rodin committed Apr 7, 2014
1 parent ff325d4 commit 52164481632cf0aad704b5885279717c99314a6d
Showing 2 changed files with 27 additions and 1 deletion.
@@ -88,7 +88,7 @@ http {
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

error_page 404 /error/index.html;
error_page 404 /error/404/index.html;
error_page 403 /error/index.html;
error_page 500 /error/index.html;

@@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en"><head>
<title>404 &mdash; page not found</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="internal error"/>
<style type="text/css">
body {font-size:14px; color:#777777; font-family:arial; text-align:center; background: black;}
h1 {font-size:180px; color:#99A7AF; margin: 70px 0 0 0;}
h2 {color: #DE6C5D; font-family: arial; font-size: 24px; font-weight: bold; letter-spacing: -1px; padding: 40px 0 0 0;}
p {width:320px; text-align:center; margin-left:auto;margin-right:auto; margin-top: 30px }
div {width:320px; text-align:center; margin-left:auto;margin-right:auto;}
a:link {color: #34536A;}
a:visited {color: #34536A;}
a:active {color: #34536A;}
a:hover {color: #34536A;}

<h2>Page Not Found</h2>
<img src="/error/vesta.jpg">
Try start again from <a href="/">home page</a> or go back to <a href="javascript:%20history.go(-1)">previous page</a>

0 comments on commit 5216448

Please sign in to comment.