On Tue, Oct 4, 2011 at 10:27 AM, Magnus Olsson <mag...@minimum.se> wrote: > On 10/04/2011 10:22 AM, Olaf van der Spek wrote: >> >> On Tue, Oct 4, 2011 at 10:17 AM, Magnus Olsson<mag...@minimum.se> wrote: >>> >>> I want to add support for .json files which currently are treated as some >>> kind of binary file by lighttpd. >>> This is mostly a webserver extension, so I guess it also applies to >>> apache >> >> It sounds like a global mime type, not restricted to the domain of web >> servers. >> >>> and other webservers. I am unsure if these too use the /etc/mime.types >>> files, if they do, it makes sense adding it to the mime-support package >>> and >> >> I think they do. >> >>> integrate .json files into upstream /etc/mime.types >>> >>> However, I also plan on using a custom file extension, for which I need a >>> mime-type. I don't really care if it's per-user (as long as www-data >>> counts >>> as a user), per-daemon (as long as lighttpd is included) or system-wide >>> way >>> to define the mime-type for this custom file ext.. I simply need a way of >>> doing it. >>> >>> With the current system, how do you suggest adding a new mime-type? The >>> only >>> way I see is editing /etc/mime.types, which will cause conflicts for >>> every >>> update of mime-support package. >> >> I've never needed to alter mime types, but you're right, editing >> mime.types isn't ideal. >> Unfortunately the file name and type of mime types is hard-coded (at >> least in Lighttpd), so I think there's no better option. >> Ideally there'd be a mime.user.types or so for the sys admin to use. > > A mime.user.types would be ideal. Do you propose adding this to lighttpd or > should this be added to the mime-support package?
It's not Lighttpd specific, so it shouldn't be in the Lighttpd pkg. Your best bet is to ask the developers of mime-support how this should be handled properly. Olaf -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org