打开apache 的httpd.conf 文件,搜索 AddType 一节,归属于<IfModule mime_module>部分。
如果仅仅是吧php修改为do,则只需要修改 .php 相关的那一行就行,想了解更多的话,到apache目录conf目录寻找一个mime.types的文件慢慢看就行了。
如果你的计算机,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服务器是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欢迎分享,转载请注明来源:内存溢出
评论列表(0条)