1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# 创建精美的首页
sudo tee /var/www/html/web/index.html <<'EOF'
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎯 墨不凡 - 静态网站示例</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #333;
}
.container {
background: rgba(255, 255, 255, 0.95);
padding: 3rem;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 600px;
width: 90%;
backdrop-filter: blur(10px);
}
h1 {
color: #4a5568;
margin-bottom: 1.5rem;
font-size: 2.5rem;
}
.path-info {
background: #f7fafc;
padding: 1.5rem;
border-radius: 8px;
margin: 2rem 0;
border-left: 4px solid #4299e1;
font-family: 'Courier New', monospace;
word-break: break-all;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.feature {
background: #ebf8ff;
padding: 1rem;
border-radius: 8px;
font-size: 0.9rem;
}
.emoji {
font-size: 2rem;
margin-bottom: 0.5rem;
}
</style>
</head>
<body>
<div class="container">
<h1>🚀 欢迎访问静态网站</h1>
<div class="path-info">
<strong>📁 网站路径:</strong><br>
/var/www/html/web/index.html
</div>
<div class="features">
<div class="feature">
<div class="emoji">⚡</div>
<div>高性能</div>
</div>
<div class="feature">
<div class="emoji">🔒</div>
<div>HTTPS加密</div>
</div>
<div class="feature">
<div class="emoji">📱</div>
<div>响应式设计</div>
</div>
<div class="feature">
<div class="emoji">🎨</div>
<div>现代界面</div>
</div>
</div>
<p>✨ 由 <strong>Caddy Server</strong> 提供支持</p>
</div>
</body>
</html>
EOF
|