LinuxSir.cn,穿越时空的Linuxsir!

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

apache不能显示中文!

[复制链接]
发表于 2003-3-30 14:10:56 | 显示全部楼层 |阅读模式
系统是redhat8.0,apache 是2.04
发表于 2003-3-30 20:53:13 | 显示全部楼层
5.支持GB2312
查找  AddDefaultCharset ISO-8859-1
替换为AddDefaultCharset GB2312




OK安装完成后开始配置conf目录下的httpd.conf文件
1.#Servername new.host.name 改为 Servername dato.vicp.net(在安装时己自动完成)
如果你仅仅是为了单机调试,那么只要这样配置就OK了
访问http://localhost/*.*或http://127.0.0.1/*.*(*.*为要访问的文件)
2.指明WEB服务目录
ServerRoot "E:/Apache2"(安装时自动完成)
DocumentRoot "F:/dato"(指定WEB根目录)
3.设置Apache虚拟目录,加入以下行:
Alias  /bbs/   "f:/dato/wdb/"
Alias  /guestbook/   "f:/dato/book/"
4.增加默认启动文档:
查找DirectoryIndex index.html index.html.var
DirectoryIndex index.php index.htm index.html index.html.var
5.支持GB2312
查找  AddDefaultCharset ISO-8859-1
替换为AddDefaultCharset GB2312
在浏览器里输入http://localhost/manual/(成功安装Apache)
别忘了要先运行APACHE啊!
发表于 2003-3-31 10:05:16 | 显示全部楼层
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=29052
呵呵,大家成功的经验都在这里!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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