Package: apache2
Version: 2.4.25-3+deb9u7

I have just perpetrated this:

<FilesMatch 
"^(?!.*(?:\\.tar|\\.crt|microcode|\\.jpeg|\\.png|\\.html)(?:\\.bz2|\\.gz|-gzip)?$)"
 >
  ForceType text/plain
</FilesMatch>

which is just awful.  This is an insane way to spell this, and it also
means I have to repeat all of the file extensions which my system
might work with, rather than using the handy list in mime.types.

My system is a CI system which generates largely textual logfiles,
whose filenames do not, and should not, generally end in .txt.  So in
my context, a default file type is absolutely correct.  It ought to be
supported.

(And type-sniffing is definitely wrong here.)

I understand that DefaultType was previously needed basically
everywhere, but is now not usually recommended.  That's fine.  I don't
mind if I have to write ReallyDefaultTypeIPromiseIKnowWhatImDoing.

Thanks,
Ian.    

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Reply via email to