The quick version:

Is it possible to change the default MIME type on a Tomcat 4.1 server? Currently files with unknown extensions are treated as "text/plain".



More background:

I run a server that runs a Tomcat that is provided by an App Vendor. With their last upgrade they upgrade the Tomcat to 4.1. Before then files with unknown extensions would attempt to download by default. (Presumably the default MIME type was "application/unknown".) Now, it attempts to show the files as text, with the MIME type "text/plain".

I know how to change MIME type for a particular extension, but what I'd really like to do is to change the default used for unknown extensions. Is this possible without editing the source and recompiling?

I did notice the change listed in the RELEASE-NOTES-4.1.txt file.  Under
Catalina Bug Fixes:

[4.1.11] DefaultServlet:
   Assume text file when MIME type is unknown for including purposes.

Is their some setting that can undo this fix? Considerable searching on this has proven fruitless so far. Does Tomcat have any configuration setting comparable to Apache's "DefaultType"?


Thanks,

Scott Wilson                    Lead System Administrator
[EMAIL PROTECTED]            NSIT - DCS - ATAT

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to