Why Is This Important?
MimeFilter directs EZproxy to process a given file type that EZproxy does not process by default. This can only be applied to a specific database stanza.
MimeFilter is a position-dependent config.txt file that must be included after the Title directive of a specific database stanza. It allows the EZproxy administrator or content provider to specify a particular file type that EZproxy should process, that it would not otherwise process by default.
The syntax for the MimeFilter directive is:
MimeFilter mime-type URI-pattern [-] action
where each of the following variables must be entered:
||The mime type of object to apply URL rewriting rules to.||
||URIs to apply URL rewriting to. This can be a PCRE regular expression.
|If this variable precedes the action variable, then remove default patterns for rewrite and ONLY consider these patterns for rewrite.
Values can be:
If left blank an error is reported, and the directive is ignored.
EZproxy v6.0.8 introduced default support for json rewriting. Content providers and resources requiring json applications to be rewritten should no longer require the MimeFilter directive; however, leaving the directive in stanzas that previously required it will do no harm.
This is the most commonly-seen application of this directive in a database stanza.