Skip to content

Commit 8d0c06f

Browse files
committed
modify: 404 500 page
1 parent 1e544cf commit 8d0c06f

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

nginx/pages/404.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>404 Not Found</title>
7+
<style>
8+
body {
9+
text-align: center;
10+
padding: 150px;
11+
font-family: "Arial", sans-serif;
12+
background-color: #f4f4f4;
13+
color: #333;
14+
}
15+
16+
h1 {
17+
font-size: 50px;
18+
margin-bottom: 20px;
19+
}
20+
21+
p {
22+
font-size: 20px;
23+
margin-bottom: 30px;
24+
}
25+
26+
a {
27+
font-size: 18px;
28+
text-decoration: none;
29+
color: #0077cc;
30+
}
31+
32+
a:hover {
33+
text-decoration: underline;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<h1>404 Not Found</h1>
39+
<p>Sorry, the page you're looking for doesn't exist.</p>
40+
<a href="/">Go Home</a>
41+
</body>
42+
</html>

nginx/pages/500.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>500 Internal Server Error</title>
7+
<style>
8+
body {
9+
text-align: center;
10+
padding: 150px;
11+
font-family: "Arial", sans-serif;
12+
background-color: #f4f4f4;
13+
color: #333;
14+
}
15+
16+
h1 {
17+
font-size: 50px;
18+
margin-bottom: 20px;
19+
}
20+
21+
p {
22+
font-size: 20px;
23+
margin-bottom: 30px;
24+
}
25+
26+
a {
27+
font-size: 18px;
28+
text-decoration: none;
29+
color: #0077cc;
30+
}
31+
32+
a:hover {
33+
text-decoration: underline;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<h1>500 Internal Server Error</h1>
39+
<p>Oops! Something went wrong on our end.</p>
40+
<p>Please try again later or contact support if the problem persists.</p>
41+
<a href="/">Go Home</a>
42+
<a href="mailto:hyeon.wo.dev@gmail.com">Contact Support</a>
43+
</body>
44+
</html>

0 commit comments

Comments
 (0)