作者:苟姝慧_788 | 来源:互联网 | 2018-04-09 03:22
Apache编辑httpd.conf文件,找到DirectoryIndex在后面加一个index.php。例如,我把DirectoryIndex这行改为:DirectoryIndexindex.htmlindex.htmindex.phpindex.html.var保存编辑的内容,重新启动Ap
Apache
编辑httpd.conf文件,找到DirectoryIndex在后面加一个index.php。
例如,我把DirectoryIndex这行改为:DirectoryIndex index.html index.htm index.php index.html.var
保存编辑的内容,重新启动Apache就可以实现了。