Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251062 - www-servers/lighttpd - Please include new mime-type
Summary: www-servers/lighttpd - Please include new mime-type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Christian Hoffmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-15 21:49 UTC by edoceo
Modified: 2009-04-03 18:48 UTC (History)
2 users (show)

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


Attachments
Patchy McUnifiedDiff - adds one mime type (mime-types.patch,480 bytes, patch)
2008-12-15 21:51 UTC, edoceo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description edoceo 2008-12-15 21:49:45 UTC
I really wish that lighttpd used a global mime-types file but oh-well.  I use lighttpd for download in my CDN.  One of the file types is 'dmg' (application/x-apple-diskimage).  I wish that /etc/lighttpd/mime-types.conf included this type so I don't have to edit on all my servers (all three - oh wow!)  I've attached a patch that adds this line to the required file.
Comment 1 edoceo 2008-12-15 21:51:15 UTC
Created attachment 175363 [details, diff]
Patchy McUnifiedDiff - adds one mime type

It's a single line patch.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-16 13:17:20 UTC
More interesting would be a patch that makes lighttpd use the system MIME config. :)
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-02 22:06:44 UTC
cat /etc/mime.types | awk '// { if ( $1 != "#" &&  $2) print "\t\""$2"\"\t\t =>\t\""$1"\"," }'

this little bugger should get you half way..
Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-03 18:48:13 UTC
this is now in cvs. thanks for the report

you will need to remerge lighttpd to have the new mime-type file installed. (or wait for the next bump, which also will have it).

thanks
kind regards
Thilo