当我们在浏览器中给ip时,它不指向索引页。它显示错误:“未找到请求的URL /在此服务器上找不到”,尽管索引页在DocumentRoot中。apache2没有列出导演
如果我们给ip/index.php,它会显示页面。同样,当我打开包含浏览器(url:ip/test)中的某些文件的测试目录时,它显示相同的错误“未找到”,而不是列出目录中的文件。
Autoindex module was enabled . Tried giving Options +Indexes // enables the listing of files/folders in a directory Permission for the directory also enabled.
但仍然得到了同样的错误。当用日志文件检查时,每当我试图打开目录时,显示“尝试加载目录”..但它没有加载。
[这是发生在测试服务器上,而舞台服务器正常工作。还比较了默认[/ etc/apache2/sites-enabled],.htaccess,apache2.conf,httpd.conf,evrything似乎相同的测试和阶段服务器配置文件。 ]
.htaccess file
`Options +FollowSymLinks
DirectoryIndex index.php`
log file
Attempt to serve directory: /var/www/
文档根:在/ var/WWW/
会有人有一个想法,以解决这个问题之一。在此先感谢
是的index.php在/ var/www? – 2016-02-26 19:49:22