我有一个网站: http://bamboo-straws.com
但是从昨天开始我看到这个网站也在显示它: http://kevineger.xyz
问题在于它完全支持我的搜索引擎优化。我的网站甚至没有显示在20个第一页,而如果你谷歌另一个,它出现在第4-5页,显示我的标题,描述等。
我试着寻找解决方案,但我不知道该怎么做。
他们的DNS似乎指向我的IP。
我刚刚设置了一个"没有热链接"所以他们不再有图像......
该网站基于wordpress。
非常不走运,我们几天前推出了这款产品......
答案 0 :(得分:2)
The problem here seems to be that you are serving this site as the default content whenever anyone requests something from this IP. You need to change the server-block in your nginx configuration so this site is not the default that is sent.
This page on the nginx wiki shows how that is done https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/
As a side note there is a chance that this is actually not malicious. This domain was registered some time ago and points at the Digital Ocean nameservers, they probably had the same IP address you have now at DO attached onto their droplet and once they released it then it got assigned to you. I see this myself in request logs at my Digital Ocean droplets from sites requesting to use my DNS and bots trying to access the site - I just simply don't serve them any content as I chose not to have a default server-block.
答案 1 :(得分:0)
只需正确配置serverpilot,使其指向正确的应用程序。或者将域添加到现有应用程序。它现在基本上指向默认应用程序,在您的情况下是bamboo-straws.com。
您还可以将不需要的域指向“空”默认应用。在应用程序的文件夹中创建一个.htaccess文件:
Deny from all
顺便说一下,你运行的是apache服务器,而不是NGINX。