AllowOverride None 改成
AllowOverride ALL
vi /etc/httpd/conf/httpd.conf
找到----
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
#
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride ALL
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
2. 在/var/www/html/dev
下面touch .htaccess 文件
加上下面一行
DirectoryIndex testpage.php
就实现以此页为默认index页
Howard
阅读(315) | 评论(0) | 转发(0) |