当ubuntu使用Apache搭建web服务器是,访问网页失败,出现:
The requested URL /”文件名” was not found on this server 错误
如图所示:
The requested URL /**** was not found on this server
这种情况通常是因为目录设置错误,需要查看服务器访问的目录配置,一开始我这里访问的是在/var/www/html/目录下的,但是后来不不知道怎么回事儿,访问的目录为/var/www/下的文件,所以需要访问html目录下的文件还需要注明html这个目录。

相关文章:

  • 2022-12-23
  • 2021-05-16
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-26
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案