How to set default mime-tipe for any file extension in Tomcat 6?

Viewed 35572

Mime-types are specified in Tomcat's conf/web.xml file. It's look like this:

<mime-mapping>
   <extension>txt</extension>
   <mime-type>text/plain</mime-type>
</mime-mapping>

Previously I try following:

<mime-mapping>
   <extension>*</extension>
   <mime-type>application/octet-stream</mime-type>
</mime-mapping> 

but it doesn't help me. How to specify default mime-type for any file extension?

1 Answers
Related