virtualmin/webmin amd mime types

4 posts / 0 new
Last post
#1 Tue, 02/05/2013 - 16:30
edwardsmarkf

virtualmin/webmin amd mime types

hello all - i have started "experimenting" with opus-codec files.

i notice when i just go to a link directly for an opus file on an example page, it just plays, as expected (at least in firefox it does)

however, when i do the same thing on my server, the browser wants to download it instead.

under webmin-->system-->mime, i tried to manually enter:

audio/ogg

(please see attached)

but this did not work.

i did run a web-sniffer, and my mime-type is still coming through as "text/plain; charset=UTF-8" not "audio/ogg"

can anybody shed some light on what this newbie is doing wrong?

also, should this value end up going into the httpd.conf file?

thank you all for your help!

Wed, 02/06/2013 - 09:55
edwardsmarkf

putting things in .htaccess seemed to do the trick:

AddType video/ogg .ogm AddType video/ogg .ogv AddType video/ogg .ogg

but i should think that webmin has a much better answer than something so crude as having to manually edit a file!

Fri, 02/08/2013 - 15:35
edwardsmarkf

is there a better place i should specify mime types in virtualmin?

Sun, 02/10/2013 - 12:36
edwardsmarkf

unless somebody has a better idea, i may end up manually editing the httpd.conf and adding this:

    AddType audio/ogg .ogg .ogv
    AddType audio/speex .spx
Topic locked