Nginx - 域名上的缓存欢迎页面

Nginx - 域名上的缓存欢迎页面

我遇到了一个有趣的问题。所以我安装了 nginx 来尝试一下,现在我后悔了。初始设置还不错,但是一旦我删除 nginx 并重建服务器(一开始是全新安装),我仍然会看到欢迎页面。我想也许我错过了什么,因为这是 linode 重建。

我还关闭了服务器,看看它是否仍然响应,结果确实如此。我不确定如何清除它,但这非常令人沮丧,因为我无法访问 Apache2 虚拟域,因为它会覆盖它。

这是卷曲度。

user@localhost:~# curl -l ip
curl: (7) Failed to connect to [ip] port 80: Connection refused


user@localhost:~# curl -l www.domain.com
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</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>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

答案1

如果你已经关闭了机器,并且仍然回答,那么问题就不在于机器,而在于上游。我认为要么是你的 DNS 指向了其他地方,要么是你和远端之间有一个相当激进的缓存代理。

相关内容