zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    1654. Minimum Jumps to Reach Home
    1129. Shortest Path with Alternating Colors
    1766. Tree of Coprimes
    1368. Minimum Cost to Make at Least One Valid Path in a Grid
    LeetCode 841 钥匙与房间
    LeetCode 268 缺失数字
    LeetCode 136 只出现一次的数字
    LeetCode 461 汉明距离
    LeetCode 557 反转字符串中的单词 III
    LeetCode 392 判断子序列
  • 原文地址:https://www.cnblogs.com/Kingly/p/1493317.html
Copyright © 2011-2022 走看看