如何添加一个MIME类型为.htaccess? [英] How do I add a MIME type to .htaccess?
本文介绍了如何添加一个MIME类型为.htaccess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想下面的MIME类型添加到阿帕奇运行一个网站:
< MIME映射>
<扩展> JNLP< /扩展>
< MIME类型>应用程序/ x-java的JNLP文件< / MIME类型>
< / MIME映射>
(这是Tomcat的格式。)
我是一个共享的主机,所以我只能创建一个.htaccess文件。会有人请注明此类文件的全部内容?
解决方案
将AddType应用程序/ x-java的JNLP文件的.jnlp
请注意,你可能没有真正被允许这样做。
又见AddType指令和的文档= http://HTTPd.Apache.Org/docs/trunk/howto/htaccess.html">.htaccess HOWTO 。
I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
(That is the Tomcat format.)
I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete contents of such a file?
解决方案
AddType application/x-java-jnlp-file .jnlp
Note that you might not actually be allowed to do that.
See also the documentation of the AddType directive and the .htaccess howto.
这篇关于如何添加一个MIME类型为.htaccess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文