Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 251062

Summary: www-servers/lighttpd - Please include new mime-type
Product: Gentoo Linux Reporter: edoceo <code>
Component: [OLD] ServerAssignee: Christian Hoffmann (RETIRED) <hoffie>
Status: RESOLVED FIXED    
Severity: enhancement CC: jer, www-servers+disabled
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patchy McUnifiedDiff - adds one mime type

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