在安装apache后,启动httpd服务。这是就可以访问web了。但是页面提示如下:
如果在/var/www/html/目录中添加index.html文件,就显示index.html中的内容。如果没有index.html文件,就一直显示这个文件。即使在httpd.conf文件中配置了下面的设置:
<Directory "/var/www/html/">
Options Indexes FollowSymLinks
Order allow,deny
allow from all
</Directory>
那这个页面到底在什么地方呀?是否可以删除呀?别急,我找到了。它就是:
/var/www/error/noindex.html
打开看看吧。从放置的位置来看,它认为没有index.html是一个错误操作。它就转到错误页面。但这个错误页面看起来不像错误的样子。打开httpd.conf看看,应该可以找到设置noindex.html的地方。
转载于:https://blog.51cto.com/swenzhao/1221695