Nginx維護頁面
CSS是GPT寫的
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>網站維護中</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f3f3f3;
margin: 0;
font-family: Arial, sans-serif;
}
.maintenance-container {
text-align: center;
padding: 20px;
background-color: #fff;
border: 2px solid #ccc;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="maintenance-container">
⚠️
<p>網站正在維護中,請稍後再試。</p>
</div>
</body>
</html>
nginx config
# 某個sever內
root /放頁面的路徑;
location / {
index 404.html;
}