欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

让手机访问WAP网站服务器 IIS WAP服务器的MIME类型设置

程序员文章站 2022-11-27 18:56:43
如果你的电脑,web服务器是iis iis--默认网站属性-->http 头-->mime映射 -->文件类型 -->新类型 .wml text/v...
如果你的电脑,web服务器是iis
iis--默认网站属性-->http 头-->mime映射 -->文件类型 -->新类型
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wbmp image/vnd.wap.wbmp
如果你的电脑,web服务器是apache
apache安装目录下的conf/mime.types文件
增加:
text/vnd.wap.wml .wml
image/vnd.wap.wbmp .wbmp
application/vnd.wap.wmlc .wmlc
text/vnd.wap.wmls .wmls
application/vnd.wap.wmlsc .wmlsc

支持java下载:在iis中需要添加
.jad text/vnd.sun.j2me.app-descriptor
.jar application/java-archive
支持sis文件下载:在iis中需要添加
.sis application/vnd.symbian.install
另外你还可以这样设:
下载型wap服务器
--------------------------------
.amr audio/amr
.pmdaudio/pmd
.3gp video/3gpp
.cab application/vnd.smartpohone
.gif image/gif
.hme application/vnd.smartphone.thm
.jad text/vnd.sun.j2me.app-descriptor
.jar application/java-archive
.jpg image/jpeg
.mid audio/midi
.mp3 audio/x-mpeg
.mp4 video/mp4
.ogg application/ogg
.pdb application/ebook
.rm video/rm
.rng application/vnd.nokia.ringing-tone
.sdt application/vnd.sie.thm
.sis application/vnd.symbian.install
.thm application/vnd.eri.thm
.tsk application/vnd.ppc.thm
.umd application/umd
.utz application/vnd.uiq.thm
.wav audio/x-wav
.wbmp image/vnd.wap.wbmp
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wmv video/x-ms-wmv
.wsc application/vnd.wap/wmlscriptc
--------------------------------------------------------------------
一般wap服务器
.wbmp image/vnd.wap.wbmp
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wmv video/x-ms-wmv
.wsc application/vnd.wap/wmlscriptc
.gif image/gif
.jpg image/jpeg
.bmp image/bmp