Chinaunix首页 | 论坛 | 博客
  • 博客访问: 143293
  • 博文数量: 123
  • 博客积分: 5770
  • 博客等级: 大校
  • 技术积分: 1240
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-12 16:31
个人简介

闲情逸致 http://EZ38.com

文章分类

全部博文(123)

文章存档

2014年(1)

2010年(122)

我的朋友
最近访客

分类: LINUX

2010-04-02 10:16:07

 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) |
给主人留下些什么吧!~~