-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from nadirvishun/1.2
增加生产环境下错误页展示
- Loading branch information
Showing
7 changed files
with
200 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
<!doctype html> | ||
<html lang="zh-CN"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>HTTP 404 - SegmentFault</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
* { | ||
line-height: 1.7; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
html { | ||
background-color: #f3f3f3; | ||
color: #888; | ||
display: table; | ||
font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
body { | ||
display: table-cell; | ||
vertical-align: middle; | ||
margin: 2em auto; | ||
} | ||
h1 { | ||
color: #555; | ||
font-size: 2em; | ||
} | ||
a { | ||
color: #06a; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
text-decoration: underline; | ||
} | ||
p, .p { | ||
margin: 10px 0 15px; | ||
} | ||
input, button { | ||
font-size: 16px; | ||
padding: 6px 10px; | ||
border: none; | ||
border-radius: 2px; | ||
margin-top:40px; | ||
} | ||
input { | ||
background-color: #f3f3f3; | ||
width: 60%; | ||
} | ||
button { | ||
min-width: 80px; | ||
background-color: #77B767; | ||
text-align: center; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
button:hover, | ||
button:active { | ||
background-color: #008151; | ||
} | ||
.error { | ||
color: #d9534f; | ||
} | ||
.text-center { | ||
text-align: center; | ||
} | ||
.box { | ||
margin: 0 auto; | ||
padding: 40px; | ||
background-color: #fff; | ||
width: 540px; | ||
} | ||
.figure { | ||
float: right; | ||
line-height: 0; | ||
} | ||
.figure img { | ||
height: 200px; | ||
} | ||
.footer { | ||
margin: 15px 0 0; | ||
color: #999; | ||
text-transform: uppercase; | ||
font-size: 13px; | ||
} | ||
.footer a { | ||
color: #999; | ||
} | ||
@media only screen and (max-width: 480px) { | ||
.box { | ||
padding: 20px; | ||
width: 100%; | ||
} | ||
h1 { | ||
font-size: 1.5em; | ||
margin: 0 0 0.3em 0; | ||
} | ||
.figure { | ||
float: none; | ||
} | ||
} | ||
.clearfix:before, | ||
.clearfix:after { | ||
content: " "; | ||
display: table; | ||
} | ||
.clearfix:after { | ||
clear: both; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="box"> | ||
<div class="clearfix"> | ||
<figure class="figure"> | ||
<img src="img/error.jpg" alt="杯具啊"> | ||
</figure> | ||
<h1>呃呃呃!</h1> | ||
<div class="p">我去!这网页有毒.....</div> | ||
<div class="p"> | ||
<button type="button" onclick="window.location.href='/'">回首页</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="footer text-center"> | ||
1024 © Modernphp | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[2017-09-01 12:00:50] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:00:50] app.exception.ERROR: modernphp\Application::modernphp\{closure}(): Failed opening required '' (include_path='.;C:\php\pear') [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:00:50] app.exception.ERROR: Undefined variable: viewFile [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:01:03] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:01:44] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:03:58] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:04:53] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:04:57] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:05:29] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:06:52] app.exception.ERROR: 404 Not Found [] {"url":"/sl","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:07:01] app.exception.ERROR: 404 Not Found [] {"url":"/","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/sl"} | ||
[2017-09-01 12:07:02] app.exception.ERROR: 404 Not Found [] {"url":"/","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/"} | ||
[2017-09-01 12:07:07] app.exception.ERROR: 404 Not Found [] {"url":"/","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 12:08:56] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:26:28] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:26:28] app.exception.ERROR: 404 Not Found [] {"url":"/public/img/error.jpg","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/sfs"} | ||
[2017-09-01 17:26:57] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:26:57] app.exception.ERROR: 404 Not Found [] {"url":"/public/img/error.jpg","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/sfs"} | ||
[2017-09-01 17:27:58] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:27:58] app.exception.ERROR: 404 Not Found [] {"url":"/public/img/error.jpg","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/sfs"} | ||
[2017-09-01 17:28:13] app.exception.ERROR: 404 Not Found [] {"url":"/public/img/error.jpg","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":"http://www.mordenphp.com/sfs"} | ||
[2017-09-01 17:28:35] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:30:05] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:31:41] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} | ||
[2017-09-01 17:32:10] app.exception.ERROR: 404 Not Found [] {"url":"/sfs","ip":"127.0.0.1","http_method":"GET","server":"www.mordenphp.com","referrer":null} |