Joh*_* Au 0 php apache localhost
我试图通过Chrome浏览器访问我的xampp上的localhost,但是我收到以下错误消息:
Object not found!
The requested URL was not found on this server. If you entered the
URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
Run Code Online (Sandbox Code Playgroud)
Apache和MySQL已打开,所以我不明白.
你可以访问"localhost"就好了.
"404:file not found"错误表示一旦连接到localhost ,服务器就找不到所请求的文件.
附录:
也许尝试在你的一个无效的虚拟主机中创建一个名为test.html的常规html文件.然后尝试访问该网址.这应该给你一些关于可能是什么问题的线索. - Gohn67
这是个好建议.试试吧.特别:
1)创建以下五个文件:
C:/xampp/htdocs/dummy-host.localhost/test.html
C:/xampp/htdocs/my/test.html
C:/xampp/htdocs/launcher/public_html/test.html
C:/xampp/htdocs/website/httpdocs/test.html
C:/xampp/htdocs/my/test.html
2)确保每个目录都存在,每个目录都有一个"test.html",其中包含"TESTING 1 ... 2 ... 3"字样
3)在浏览器中尝试以下五个URL中的每一个:
4)报告从每个浏览器URL获得的确切错误
归档时间: |
|
查看次数: |
22330 次 |
最近记录: |