Home  >  Article  >  php教程  >  如何让Apache能自动运行index.php?

如何让Apache能自动运行index.php?

WBOY
WBOYOriginal
2016-06-21 09:08:031907browse

apache

编辑httpd.conf文件,找到DirectoryIndex在后面加一个index.php。
例如,我把DirectoryIndex这行改为:DirectoryIndex index.html index.htm index.php index.html.var
保存编辑的内容,重新启动Apache就可以实现了。



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn