该设置在httpd.conf里有两处:
[code:1]
...
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
...
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
...
</Directory>
...
[/code:1]
还有,你需要看看模块字段有没有你需要解析的文件后缀,像这样:
[code:1]...
<IfModule dir_module>
DirectoryIndex index.php index.html index.html.var
</IfModule>
...[/code:1]