I want to configure my lighttpd to serve some static files, with compression capability. The files are plain text but they have .bin
extension. I have these lines in my lighttpd configuration:
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ("text/plain", "text/html", "application/x-javascript", "text/css")
And it works for css and js files, but not for the .bin
files.
Here is the output of file -i
for one fo those .bin
files:
8_1.bin: text/plain; charset=us-ascii
How can I determine the file type of this file the same way lighttpd does it?