-1

Apache doesn't send me an MP3 header even when using a direct address to the file. It means I can play it with Flash audio players on my web pages, but when I tried to download from the direct address on my server I got:

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset

Or it sometimes gives me a file with a .mp3 file extension that just has a file size of 13 bytes. When I open that file in gedit/Notepad there is just:

<html></html>

I don't have any problem with PHP files and images, but the MP3 files are never send to the browser for download or play.

I added the following code to httpd.conf, but there is not any difference!

AddType audio/mpeg   .mp3
sysadmin1138
  • 131,083
  • 18
  • 173
  • 296
user1728307
  • 79
  • 1
  • 6

2 Answers2

1

You need to modify your mime.types file not your httpd.conf file. Add (or modify) the following line to your mime.types file and restart Apache.

audio/mpeg          mpga mp2 mp3

See this post about for an example mime.types file that should cover all of your application's needs.

Craine
  • 141
  • 4
0

Maybe

AddType audio/mpeg .mp3

And then restart apache.

Mihai Iorga
  • 126
  • 2