LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 733|回复: 3

httpd.conf请教

[复制链接]
发表于 2003-11-10 16:10:57 | 显示全部楼层 |阅读模式
/usr/local/apache2/conf下的httpd.conf主要几项配置如下:
ServerRoot "/usr/local/apache2"
ServerType standalone
Port 80
Listen 80
DocumentRoot "/usr/local/apache2/htdocs"

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

DirectoryIndex index.html index.html.var index.htm
AccessFileName .htaccess

Order allow,deny
Deny from all

TypesConfig conf/mime.types
DefaultType text/plain
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw

ForceLanguagePriority Prefer Fallback
AddDefaultCharset GB2312
问题是1.乱码2.DocumentRoot "/usr/local/apache2/htdocs"时,必须键入index.htm否则
(只键入ip或localhost)就是出现apache的默认页即:testpage....3.不能换网站目录,改为
DocumentRoot "/web"和时(web下有index.htm文件),但提示object not found(错误404)::大虾救命啊!
每次改过httpd.conf肯定重起了httpd服务(rh9,apache-2.0.40)
发表于 2003-11-10 23:38:46 | 显示全部楼层
404:DirectoryIndex 加上你要的首页文件名
乱码:把一行AddDefaultChar前面加上#注掉。
 楼主| 发表于 2003-11-11 08:19:55 | 显示全部楼层
DirectoryIndex index.html index.html.var index.htm
index.htm已经加上了阿
我用的就是index.htm
AddDefaultCharset GB2312
不是中文吗??
怎么又不行啊
thanks a lot
发表于 2003-11-11 08:35:56 | 显示全部楼层
请将你的虚拟域名部分贴出来分析一下,或者干脆将其注释掉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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