Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 399401 - www-servers/lighttpd - add more file types to /etc/lighttpd/mime-types.conf
Summary: www-servers/lighttpd - add more file types to /etc/lighttpd/mime-types.conf
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 16:47 UTC by Oschtan
Modified: 2020-09-07 18:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2012-01-19 16:47:15 UTC
The server does not recognize the video files like "mkv" and "mp4". Required to make these types of self in the /etc/lighttpd/mime-types.conf
I note that the "mp4" is present in /etc/mime.types:
----------------
video/mp4          mp4 mp4v mpg4
---------------
In the case of mkv want to add:
---------------
video/x-matroska        mkv
---------------
In /etc/lighttpd/mime-types.conf need to add both types of files, otherwise they will not play on the client side, as shown as application/octet-stream:
---------------
   ". mkv" => "video/x-matroska",
   ". mp4" => "video/mp4",
........

Reproducible: Always
Comment 1 zlg (RETIRED) gentoo-dev 2016-08-10 09:20:56 UTC
This sounds like something we'll want upstream to support and can patch in the mean time. It'll be on the list for future ebuild versions and I'll send a bug report upstream.
Comment 2 zlg (RETIRED) gentoo-dev 2016-09-12 05:37:50 UTC
Quick update: lighttpd ships a Perl script that will generate a mime-types.conf from the /etc/mime.types file on the host system. Lighttpd itself does not come with a "default MIME types" file, so we should find a way to generate it as needed.

I'll mark this as IN_PROGRESS until I have a suitable solution.
Comment 3 Oschtan 2018-04-22 13:32:29 UTC
".iso"          =>      "application/x-iso9660-image",
".exe"          =>      "application/x-exe"