gpt4 book ai didi

Wamp基本配置: "The requested URL/my-site/was not found on this server."

转载 作者:行者123 更新时间:2023-12-03 22:44:23 26 4
gpt4 key购买 nike

我刚刚在装有 Windows 10 的新计算机上安装了 Wamp,但无法成功访问“www”文件夹中的任何项目。
例如,我用一个简单的 index.html 文件创建了文件夹“C:\wamp64\www\my-site”,但是当我启动“localhost/my-site/”时,出现以下错误:

Not Found

The requested URL /my-site/ was not found on this server.


Apache/2.4.17 (Win64) PHP/5.6.16 Server at localhost Port 80


另一方面,“ localhost/ ”和“ localhost/phpmyadmin/ ”工作得很好。
我检查了 httpd.conf flie,一切似乎都没问题:
#...
Listen 0.0.0.0:80
Listen [::0]:80
#...
ServerName localhost:80
#...
DocumentRoot "C:/wamp64/www/"
#...
有什么想法可以解决我的问题吗?
先感谢您!

最佳答案

我刚刚发现我的问题是什么。

我没有创建一个 index.html 而是一个 index.html.txt ...

令我困扰的是,对于 Wamp 3,错误是 404 错误。使用 Wamp 2,当您没有索引文件(或 .htaccess)时,它会向您显示文件夹内容。

关于Wamp基本配置: "The requested URL/my-site/was not found on this server.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36640841/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com