11

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?

Bahramdun Adil
  • 5,907
  • 7
  • 35
  • 68
Frank Krueger
  • 69,552
  • 46
  • 163
  • 208

2 Answers2

11
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.

Jörg W Mittag
  • 363,080
  • 75
  • 446
  • 653
4

You should be able to just add this line:

AddType application/x-java-jnlp-file     .jnlp
Ryan Guest
  • 6,080
  • 2
  • 33
  • 39