配置Wap环境

mayflowers posted @ 2008年9月13日 20:41 in wap , 1315 阅读

1、iis配置Wap环境


  在作为wap站点的属性-->Http头-->MIME映射中添加新的文件类型,具体如下:

  关联文件名 内容类型

  wml text/vnd.wap.wml
  wmlc application/vnd.wap.wamlc
  wmls text/vnd.wap.wmlscript
  wmlsc application/vnd.wap.wmlscript
  wbmp image/vnd.wap.wbmp

2、apache配置Wap环境

在httpd.conf中加入如下几行: 

  AddType text/vnd.wap.wml .wml 
  AddType image/vnd.wap.wbmp .wbmp 
  AddType application/vnd.wap.wmlc .wmlc 
  AddType text/vnd.wap.wmls .wmls 
  AddType application/vnd.wap.wmlsc .wmlsc

3、tomcat配置Wap环境

在web.xml中加入如下几行:(tomcat 6.x 默认已经支持)

    <mime-mapping>
        <!-- Wireless Bitmap -->
        <extension>wbmp</extension>
        <mime-type>image/vnd.wap.wbmp</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- WML Source -->
        <extension>wml</extension>
        <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML -->
        <extension>wmlc</extension>
        <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- WML Script Source -->
        <extension>wmls</extension>
        <mime-type>text/vnd.wap.wmlscript</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML Script -->
        <extension>wmlscriptc</extension>
        <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>

Bihar Plus One Previ 说:
2022年8月22日 00:20

We advise any test-takers who wish to examine their Bihar intermediate Question Paper 2023 to use the Bihar Board 11th Model Paper with Answers. Download sample test questions for the arts History The study of politics Sociology Philosophy economy, psychology, and geography Domestic Science Commerce Sample Exam Papers Accountancy Economics, Business, Entrepreneurship, and Humanities Sample Test Questions Spanish Hindi Literature and Language English Urdu Science Model Question Papers from Maithilli Chemistry Biology Physics Bihar Plus One Previous Paper 2023 Mathematics Patna Board Inter Question Paper 2023, BSEB 11th Model Paper 2023 On this website, we offer tips and information on how students may prepare for exams. Important Question Paper 2023 from Patna Board. Get your Patna Board Inter 11th Class Important Question Paper 2023 by simply following the instructions.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter