我最近做了一个DigitalOcean液滴灯预装.把我的网站(包括index.php)上传到/var/www
Apache只会返回它的工作原理!页面,我必须手动将/index.php添加到我的url中。
我尝试过的事情:
DirectoryIndex index.php添加到apache2.conf编辑:这是我的apache2.conf文件:http://pastebin.com/BMgiNdiD
发布于 2014-01-27 19:00:24
您缺少以下配置:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html \
default.htm home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>https://stackoverflow.com/questions/21388978
复制相似问题