网站任何路径请求都是404,访问日志都是GET /index.php,似乎都被定向到index.php了,怎么回事?

发布于 2022-09-04 13:36:01 字数 3494 浏览 20 评论 0

无论我访问root.com/还是root.com/index.html,都是404打不开页面,我查看访问日志,发现不管什么路径的请求都会被定向到/index.php上

日志:

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2017-02-23 12:22:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 
2017-02-23 12:22:05 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 117.136.81.240 Mozilla/5.0+(iPhone;+CPU+iPhone+OS+10_2_1+like+Mac+OS+X)+AppleWebKit/602.1.50+(KHTML,+like+Gecko)+CriOS/56.0.2924.79+Mobile/14D27+Safari/602.1 404 0 2
2017-02-23 12:22:05 W3SVC223192134 121.199.27.219 GET /favicon.ico - 80 - 117.136.81.240 Mozilla/5.0+(iPhone;+CPU+iPhone+OS+10_2_1+like+Mac+OS+X)+AppleWebKit/602.1.50+(KHTML,+like+Gecko)+CriOS/56.0.2924.79+Mobile/14D27+Safari/602.1 404 0 2
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2017-02-23 12:42:35
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 
2017-02-23 12:42:35 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:35 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:37 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:40 W3SVC223192134 121.199.27.219 GET /favicon.ico - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:40 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:41 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:41 W3SVC223192134 121.199.27.219 GET /favicon.ico - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:42:42 W3SVC223192134 121.199.27.219 GET /favicon.ico - 80 - 121.199.27.219 Mozilla/5.0+(Windows+NT+5.2)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/47.0.2526.106+Safari/537.36 404 0 2
2017-02-23 12:45:49 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 27.17.73.166 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/55.0.2883.44+Safari/537.36 404 0 2
2017-02-23 12:45:49 W3SVC223192134 121.199.27.219 GET /favicon.ico - 80 - 27.17.73.166 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/55.0.2883.44+Safari/537.36 404 0 2
2017-02-23 12:45:55 W3SVC223192134 121.199.27.219 GET /index.php - 80 - 27.17.73.166 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/55.0.2883.44+Safari/537.36 404 0 2

网站的默认文档有这些,并没有设置index.php:
图片描述

请问这是怎么回事?我要怎么解决?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

禾厶谷欠 2022-09-11 13:36:01

查看主目录路径设置对不对。

clipboard.png

还有个可能就是服务器被挂马了。或者打开你的index.html,看看源码中是否被插入了非法的JS。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文