Downloading JNLP files

Sometimes when you use Apache as your Web-to-Host web server, a JNLP file is displayed in the end user's browser instead of being downloaded by the browser.

If this occurs, add the following code to the http.conf file:

<FilesMatch "\.jnlp">
ForceType application/x-java-jnlp-file
Header set Content-Disposition attachment
</FilesMatch> 

This code forces the browser to download any files with the file extension of .JNLP instead of displaying the contents of the files in the browser.