Koozali.org: home of the SME Server

MP3/Real/etc. MIME types in Apache?

Dave Scarbrough

MP3/Real/etc. MIME types in Apache?
« on: July 22, 2001, 11:35:58 PM »
In previous installations of Apache under RedHat 6.2 and OpenLinux 2.3, my mp3, QuickTime and Real links worked fine by default.  With this e-smith 4.1.2 install, my binary links are coming through the client browsers as text, when they didn't use to (check www.davetunes.com for an example).  Any pointers to adjust the correct file (I'm guessing an smb.conf or httpd.conf file somewhere?) would be greatly appreciated.

Lloyd Keen

Re: MP3/Real/etc. MIME types in Apache?
« Reply #1 on: July 23, 2001, 06:42:15 PM »
I think you need to put the following in your /etc/httpd/conf/httpd.conf file if it's not already there
AddType audio/mpeg mp3 MP3
Not too sure what the lines for Real and Quicktime are though. Don't forget to restart apache with #/etc/rc.d/init.d/httpd restart. To do it the e-smith way you should create the file /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/75AddTypes05.mp3 with the above line in it then rebuild the conf file with #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf and restart apache. Hope this helps

Dave

Re: MP3/Real/etc. MIME types in Apache?
« Reply #2 on: July 25, 2001, 06:17:36 PM »
That worked!  Thank you.  I did the old fashioned way instead of the "e-smith" way.  The MP3s now are pulled in binary the way they should.  I am still having probs with the quicktime and real, but I'll get to those eventually...