1. Apache
在httpd.conf文件的AddType部分加入:
AddType text/vnd.wap.wml .wml
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmls .wmls
AddType application/vnd.wap.wmlsc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
AddType image/vnd.wap.wbmp .wbmp
2. IIS
NT上的IIS服务器上也比较好实现,首先打开IIS服务器的管理程序。右击程序窗口中主机->在快捷菜单选择"属性"->点击"文件类型"按钮->在文件类型窗口中点击"新增类型"。增加以下类型:
扩展名 内容类型(MIME)
.wml text/vnd.wap.wml
.wbmp image/vnd.wap.wbmp
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmls
.wmlsc application/vnd.wap.wmlsc
.wmlsc application/vnd.wap.wmlsc
最后,重启IIS服务器就行了。