<p>I would like to add the following MIME type to a site run by <code>Apache</code>:</p>

<pre><code>&lt;mime-mapping&gt;
  &lt;extension&gt;jnlp&lt;/extension&gt;
  &lt;mime-type&gt;application/x-java-jnlp-file&lt;/mime-type&gt;
&lt;/mime-mapping&gt;
</code></pre>

<p><strong>That is the Tomcat format.</strong></p>

<p>I'm on a shared host, so I can only create an <code>.htaccess</code> file. Would someone please specify the complete contents of such a file?</p>

[{'answer_id': 33762, 'author': 'Ryan Guest', 'author_id': 1811, 'author_profile': 'https://Stackoverflow.com/users/1811', 'pm_score': 2, 'selected': False, 'text': '<p>You should be able to just add this line:</p>\n\n<pre><code>AddType application/x-java-jnlp-file     .jnlp\n</code></pre>\n'}, {'answer_id': 33767, 'author': 'Jörg W Mittag', 'author_id': 2988, 'author_profile': 'https://Stackoverflow.com/users/2988', 'pm_score': 5, 'selected': True, 'text': '<pre><code>AddType application/x-java-jnlp-file .jnlp\n</code></pre>\n\n<p>Note that you might not actually be allowed to do that.</p>\n\n<p>See also the <a href="http://HTTPd.Apache.Org/docs/trunk/mod/mod_mime.html#addtype" rel="noreferrer" title="mod_mime - AddType">documentation of the AddType directive</a> and the <a href="http://HTTPd.Apache.Org/docs/trunk/howto/htaccess.html" rel="noreferrer" title=".htaccess howto">.htaccess howto</a>.</p>\n'}]
['https://Stackoverflow.com/questions/33751', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/338/']