• IIS WAP服务器的MIME类型配置


    如何让手机访问WAP网站服务器?

        这其实只需要一部支持wap的手机,一台电脑,一个网关(是硬件,一般由电信服务商提供)就能够了,网关能够临时用电信的,所以您只需要有手机和电脑就能够了。

        假如您的电脑,WEB服务器是IIS
    打开iis,配置HTTP头中的MIME映射,如图:

    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
  • 相关阅读:
    GDOI2017 之后
    [codevs1378]选课
    图的连通_Tarjan
    [bzoj1270 BJWC2008]雷涛的小猫
    [51mod 1201]整数划分 dp
    这只是一个非常水的人,写下的非常水的文字,不看也罢
    Python基础中所出现的异常报错总结
    Python简单爬虫入门二
    Python写地铁的到站的原理简易版
    HTML基本组成结构与标签的认识
  • 原文地址:https://www.cnblogs.com/Kingly/p/1493317.html
Copyright © 2020-2023  润新知