I don't think it is possible, because in tomcat file names are case sensitive so foo.doc is not same as foo.Doc (if u try to access foo.doc as foo.Doc tomcat will return 404).

I think - however not sure - the reason for this case sensitive implemenatation is to get rid of security vulnerability where someone might be able to see the source code of a jsp file by accessing it as .Jsp or .JSP


-----Original Message-----
From: Joel McKee Cooper <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Tue, 2 Sep 2008 10:20 pm
Subject: case (in)sensitive mime-mapping










The mime-mappings in web.xml look like:

  <mime-mapping>
      <extension>doc</extension>
      <mime-type>application/msword</mime-type>
  </mime-mapping>

Which works fine if your document is named "foo.doc", but fails
miserably for "foo.Doc", "foo.DOC", etc.  Is there a way to configure
Tomcat so that the extensions are case-insensitive?

Thanks!

-Joel

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







________________________________________________________________________
You are invited to Get a Free AOL Email ID. - http://webmail.aol.in


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to