Search code examples
websphere-libertyopen-liberty

How to add mime type in web sphere liberty server?


How to add Mime type in web sphere liberty server. we are new to web sphere liberty server.


Solution

  • You can add new extensions and their corresponding mimetypes by appending the a section like the following to server.xml:

    <mimeTypes>
        <type>.bar=text/bar</type>
    </mimeTypes>
    

    I didn't have any luck overriding a built-in type this way.