Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Play AAC files on Apache web server Network
To make Apache Server work with AAC (.m4a .mp4 .m4p) files, just edit the mime.types file, which is located in /etc -> httpd. In the Finder, choose Go -> Go to Folder. In the dialog that appears, type /etc/httpd/ and click the Go button.

But before the file can be edited, it's ownership will need to be changed from System to your user. Control-click on the mime.types file, and from the contextual menu choose Get Info. Then, in the Details section of Ownership & Permissions, click the padlock icon to unlock the section. An administrator password will probably have to be entered. Then, just change the Owner from system to the user-administrator. Leave the window open; you'll use it again shortly.

Now, the mime.types file is ready to be edited. You can use TextEdit, or any other pure text editor, to edit the file. Near the bottom of the file, change video/mp4 mp4 m4a m4p to audio/mp4 mp4 m4a m4p. Then, using cut and paste (Apple-C and Apple-V), move that line so that it is between audio/mpa-robust and audio/mp4a-latm. Save the changes. And, as above, change the ownership of the file back to system!

For the changes to take effect, the server will have to be re-started. To do that, just go to System Preferences and choose Sharing. On the Services tab, click-to-highlight Personal Web Sharing, and then click Stop and Start. That's it. AAC files will now play as music in Apache Server.

[robg adds: In my mime.types file, I didn't have a multi-item video item. My line just read video/mp4 mp4, so I just commented it out, and added the above line in the audio section. I also used the Terminal, saving the ownership steps, via sudo vi /etc/httpd/mime.types, but TextEdit is definitely easier to use than a Terminal editor. Note that this hint will not let you listen to a protected AAC file for which you don't already have access; it just tells the web server what to do with AAC files when it finds one -- pass it on to QuickTime, I believe.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[18,388 views]  

Play AAC files on Apache web server | 8 comments | Create New Account
Click here to return to the 'Play AAC files on Apache web server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Play AAC files on Apache web server
Authored by: tadgher on Aug 30, '04 11:50:16AM

You really shouldn't be editing the mime.types file directly - use AddType in the httpd.conf instead.



[ Reply to This | # ]
Play AAC files on Apache web server
Authored by: Degheygh on Aug 30, '04 06:34:31PM

Can you share with us exactly how to do that, please?



[ Reply to This | # ]
Play AAC files on Apache web server
Authored by: alxalx on Sep 06, '04 06:15:10PM

Should we COPY the video line or CUT it (i.e. eliminate it)?

This hint says to use "cut and paste," but then it says "(Apple-C and Apple-V)" and to "move that line so that it is between..."

Does the "video" line need to be CUT/eliminated????

Thanks



[ Reply to This | # ]
Apache::MP3 on Panther
Authored by: babbage on Aug 30, '04 03:13:24PM

Out of curiosity, does anyone have Apache::MP3 working on Panther? I used to use it without problems on Jaguar, and I can still run it fine on Debian Linux, but it's not working for me on Panther, and apparently I'm not the only one. I get nothing interesting in the Apache error logs, and I get no output in the browser. It's very strange...

---
--
DO NOT LEAVE IT IS NOT REAL

[ Reply to This | # ]

Play AAC files on Apache web server
Authored by: Lizard_King on Aug 31, '04 09:11:27AM
Check out Apache's documentation.

[ Reply to This | # ]
Play AAC files on Apache web server
Authored by: PCheese on Aug 31, '04 08:24:25PM
In /etc/httpd/httpd.conf I used:
AddType audio/mp4 .mp4 .m4a .m4p

[ Reply to This | # ]
Play AAC files on Apache web server
Authored by: drubin on Nov 05, '04 01:29:20AM

You can use the same line in an htaccess file if you are worried about editing an Apache config file. There's less chance of damaging your setup this way...

---
--
http://superfluousbanter.org/ (personal)
http://webgraph.com/ (professional)



[ Reply to This | # ]
Play AAC files on Apache web server
Authored by: suhas on Apr 05, '05 09:56:39PM

Hi there, I am tring to support audio/aac mime type on apatche and tried putting addType, but it didnt work...I dont know why..Do you have any sample html page which has aac file referred for playing..so that i will test that page at my own machine..Any help!!!!



[ Reply to This | # ]