生成一段nginx首页的代码
时间: 2023-10-22 16:06:26 浏览: 34
以下是一个简单的 nginx 首页代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Nginx</title>
</head>
<body>
<h1>Welcome to Nginx</h1>
<p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p>
<p>For online documentation and support please refer to <a href="http://nginx.org/">nginx.org</a>.</p>
<p>Commercial support is available at <a href="http://nginx.com/">nginx.com</a>.</p>
<div style="border-top:1px solid #ccc;padding-top:10px;margin-top:10px;">
<p>Thank you for using nginx.</p>
</div>
</body>
</html>
```
该代码由一个 `<!DOCTYPE html>` 声明、一个 `<html>` 标签和两个主要部分组成: `<head>` 和 `<body>`。`<head>` 部分包含该页面的元数据,例如标题,而 `<body>` 部分包含页面内容。
该页面包含一个标题和三个段落,其中第一个段落是欢迎信息,第二个段落提供了有关 Nginx 的在线文档和支持的链接,而第三个段落包含一个感谢信息。该页面还包含一个带有链接的 `<div>` 元素,该元素显示了 Nginx 的商业支持信息。
希望这能帮助你生成一个简单的 nginx 首页代码。