虚拟主机设置MIME类型swf、wmv、3gp、mp4、jad等格式
配置IIS支持sis下载,其它格式也是一样,
如.thm、.3gp呀.... 如何开通WAP网站,通过手机来浏览的我网站呢?
浏览WAP网站与WEB网站都是需要服务器端和终端支持的,WEB网站的要求大家一般都知道了,WAP网站需要的服务器只要在WEB服务器的基础上稍加配置就可以使用,但是编写WAP网站所使用
的语言不同于WEB,通常使用WML语言配合ASP等脚本编写, 默认首页也一般为Index.asp/Index.wml/Default.asp/Default.wml等。 Windows2003 Server服务器配置IIS的MIME类型 地址:
Internet 服务管理器Internet 服务管理器-->主机属性-->计算机(MIME映射)-->编辑-->新类型
内容类型(MIME) 关联扩展名
text/vnd.wap.wml wml
image/vnd.wap.wbmp wbmp
text/vnd.wap.wmls wmls
application/vnd.wap.wmlc wmlcapplication/vnd.wap.wmlscriptc wmlsc
text/vnd.wap.wmlscript wsc
text/vnd.wap.wmlscript wmlscript如果你的电脑,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服务器是ApacheApache安装目录下的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中需要添加
require.async(['wkcommon:widget/ui/lib/sio/sio.js'], function(sio) { var url = 'https://cpro.baidustatic.com/cpro/ui/c.js'; sio.callByBrowser( url, function () { BAIDU_CLB_fillSlotAsync('u2845605','cpro_u2845605'); } ); });
void function(e,t){for(var n=t.getElementsByTagName("img"),a=+new Date,i=[],o=function(){this.removeEventListener&&this.removeEventListener("load",o,!1),i.push({img:this,time:+new Date})},s=0;s< n.length;s++)!function(){var e=n[s];e.addEventListener?!e.complete&&e.addEventListener("load",o,!1):e.attachEvent&&e.attachEvent("onreadystatechange",function(){"complete"==e.readyState&&o.call(e,o)})}();alog("speed.set",{fsItems:i,fs:a})}(window,document);
.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
var cpro_psid ="u2572954"; var cpro_pswidth =966; var cpro_psheight =120;
.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
文章来源:http://wenku.baidu.com/link?url=DYLrc2XZHZZYvwB1O-8bgGCLcXvCZcfYDWerElY7gVvci8mUB-VKJBUxYJ-ie8WQ97S-bqJKVdV8bUS_G0kll3guVVr5GuvtSr4nYnjzWWa