0

我正在运行 Apache/2.2.15 (Red Hat) 服务器(我认为)。当我 ssh 并运行 grep apache 时,没有输出。但是...显示同一台机器/ip/目录上的另一个文件(index.php,请阅读下文)。

我实际上是在接替某人。站点/页面保存在 /var/www/html。在该目录中有 index.php 和 index.html。我能够达到两者。

我将 index.html 更改为欢迎页面并上传并替换了旧页面。尝试从另一台计算机访问 index.html 时,我收到以下信息:

Forbidden

You don't have permission to access /index.html on this server.

但我仍然可以在同一目录中访问 index.php。万一这很重要,我使用 'cp' 将 index.html 从另一个目录复制到 /var/www/html。

我对此很陌生。有人可以给我线索吗?谢谢!

4

1 回答 1

0

不知道是什么问题,但...

当我使用文本管理员之外的文本编辑器时,它起作用了。

当我在服务器上创建所有文件夹并将文件单独移动到文件夹时,它起作用了。

于 2013-10-01T15:14:07.033 回答