- 论坛徽章:
- 0
|
架设WAP网站
APACHE篇
在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
保存后重启APACHE使设置生效,现在你的网站就可以支持WAP了。
IIS篇
在Internet服务管理器上点右键,属性,MIME类型,更改
在单个站点上点右键,属性,HTTP头,MIME类型
添加如下MIME类型
wml text/vnd.wap.wml
wmlc application/vnd.wap.wmlc
wbmp image/vnd.wap.wbmp
wmlsc application/vnd.wap.wmlscriptc
wmls text/vnd.wap.wmlscript
wsc application/vnd.wap.wmlscriptc
重启IIS服务,使设置生效
可使用如下文件内容进行测试test.wml
http://www.wapforum.com/DTD/wml_1.1.xml[/url]
">
WAP测试成功!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16147/showart_410146.html |
|