Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

apache配置优先访问格式

[复制链接]
oosee 发表于 2007-8-5 16:12:02 | 显示全部楼层 |阅读模式
关于apache的优先访问设置,

修改后想实现访问http://loaclhost/的时候优先显示htm页面,在没有htm格式页面存在的情况下访问html或者PHP等页面,我做了一下调整,但是输入localhost的时候还是直接访问的PHP,代码如下,请大家帮忙看看是否存在什么问题?


#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex at_domains_index.html index.htm  index.html.var index.shtml index.cfm index.html  index.php

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
回复

使用道具 举报

coolgol 发表于 2007-8-11 20:28:06 | 显示全部楼层
顶一下......
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-21 22:58 , Processed in 0.115828 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表