Odd mp3 behavior on new site. VERY ODD

nemonoman

Verified User
Joined
Apr 7, 2007
Messages
26
Hi. I am moving websites to a new server.

When using a browser that plays MP3s using QuickTime as an embedded helper (i.e. Firefox, Safari), the MP3s on the new server are truncated.

Examples (non-truncated versions will be 2-3 minutes long)

OLD SERVER (no problem, not truncated):
http://64.21.129.57/david/

NEW SERVER (truncated - embedded mp3s play for about 10 seconds)
http://67.222.128.141/david/

If you click a link using a "Save As..." option, the FULL file downloads just fine.

If the mp3 application helper is Windows Media Player, the MP3 is NOT truncated.

The old server is still Apache 1.3, new is Apache 2.2
details: old: http://64.21.129.57/info.php
new: http://67.222.128.141/info.php

BIG CONFUSION????
if I click on these files in DA file-manager, THEY PLAY JUST FINE WITH QUICKTIME!??!!!

???HELP??? I hate being confused.

Nemo

It just keeps getting WIERDER
EXCEPT
SAFARI won't play these songs AT ALL?

compare http://dontworry.org/david points to http://67.222.128.141 (BAD) with
http://www.dontworry.org/david points to http://64.21.129.57 (good)
 
Last edited:
I have posted a more specific description in the APACHE forum, which appears to be the source of the problem. I believe, but don't know, that this a problem related to AddOutputFilter DEFLATE -- BUT I don't know, can't find it, and don't really know what I am looking for. Thanks for the hint, but I'd love a more exact description.
 
Your question was already answered the first time. Read the documentation for mod_deflate on how to add specific file types to the ignore list.
 
Thanks, evil smurf for your kind reply. You may note that I asked for more specific information about how to find the item in question, because I am an idiot. None of my Apache files contained references to "ignore list" "ignore" or even to MP3. Also google or search of Apache.org didn't describe 'gzip ignore'. But you didn't just identify that I was an idiot, you also offered a small clue. For this I thank you.

Thankfully you have pointed me in the right direction.

Based on apache documentation I added this to my httpd.conf file:

<Location />

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress MP3s

SetEnvIfNoCase Request_URI .(?:mp3)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

</Location>

Now all is ok
 
Last edited:
Back
Top