apache不能显示中文!

由 xqi8 在 03-30-2003 14:10 发表:

apache不能显示中文!

系统是redhat8.0,apache 是2.04


由 dato 在 03-30-2003 20:53 发表:


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啊!


http://dato.minidns.net

Webmasterworld -- t

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus