Pregunta

Me gustaría agregar el siguiente tipo MIME a un sitio administrado por Apache:

<mime-mapping>
  <extension>jnlp</extension>
  <mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>

Ese es el formato Tomcat.

Estoy en un host compartido, por lo que sólo puedo crear un .htaccess archivo.¿Alguien podría especificar el contenido completo de dicho archivo?

¿Fue útil?

Solución

AddType application/x-java-jnlp-file .jnlp

Tenga en cuenta que es posible que no se le permita hacer eso.

Ver también el documentación de la directiva AddType y el .htaccess cómo.

Otros consejos

Deberías poder simplemente agregar esta línea:

AddType application/x-java-jnlp-file     .jnlp
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top