Fedora 8 Linux 系统架设 WAP 服务器

突然抽风,想架设一个 WAP 服务器玩.
我的 Fedora 8 Linux 在安装的时勾选了 '万维网服务',也就是说我的 Fedora 8 中的 httpd 和 apache 采用了 Fedora 系统的的默认安装.
如果要 apache 支持 wml (注:wml为WAP的默认支持文本) 我们必须对 apache 进行下额外的设置.貌似这句是废话.

来到 /etc/httpd/conf/ 目录下,使用 root 权限修改 httpd.conf 文件
在 httpd.conf 文件中 AddType application/x-gzip .gz .tgz 行下面添加如下内容:

#Wap MIME
AddType text/vnd.wap.wml .Wml
AddType application/vnd.wap.wmlc .Wmlc
AddType image/vnd.wap.wbmp .Wbmp
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType text/vnd.wap.wmlscript .Wmls
AddType application/vnd.wap/wmlscriptc .Wsc

在 DirectoryIndex index.html 后添加index.wml

重启 httpd 服务,好了,我的 Fedora 8 Linux 就已经成了一个 WAP 服务器了.

This entry was posted in UNIX/LINUX and tagged , , . Bookmark the permalink.

发表评论

您的电子邮箱不会被公开。 标记为 * 的区域必须填写

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>