This is probably more a web server question than a strictly Jira question. We attach a lot of plain-text .log files to our Jira issues, for example, crash.log, system.log, etc. The Mime type for these .log files is "text/x-log" according to the Manage Attachments screen. We would like these files to be "text/plain" instead. I've looked at the conf/mime.types file in our Apache 2.2 installation, and it says:
# MIME type Extensions
text/plain txt text conf def list log in
so I thought .log files would be typed as "text/plain", but that isn't happening. Thanks.
We're using Jira 4.2 and Apache Tomcat 2.2 on a Win Server 2008 machine.
Setting mime-type in Apache does not help.
You should set it at the Tomcat level, check this: http://stackoverflow.com/questions/3282867/how-to-set-default-mime-tipe-for-any-file-extension-in-tomcat-6
but before check if jira web.xml does not contain a definition for that, since it will have precedence, if I'm not mistaken.
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.