Closed
Bug 325895
Opened 19 years ago
Closed 19 years ago
Add MIME type mapping for dmg files to stage
Categories
(mozilla.org Graveyard :: Server Operations, task)
mozilla.org Graveyard
Server Operations
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mark, Assigned: justdave)
Details
Before certifying a Camino build as release-worthy, we download it from stage (since it hasn't hit the mirrors yet) to test it. stage is giving back a bad MIME type, text/plain, causing the file's contents to be displayed in the browser. The correct MIME type for disk images (dmg) is application/x-apple-diskimage. See bug 318199. text/plain is undeniably wrong. stage has a root-level .htaccess file that defines the correect mapping so mirrors that respect it will provide the proper type, but stage itself is not reading this file. Apache on stage should either be configured to respect the .htaccess file or it should have the MIME types added to httpd.conf.
curl -s -I http://stage.mozilla.org/pub/mozilla.org/camino/releases/Camino-1.0rc1.dmg | grep Content-Type
Content-Type: text/plain; charset=UTF-8
Assignee | ||
Comment 1•19 years ago
|
||
Apache config is going to be a server ops thing.
Assignee: zach → justdave
Component: FTP: Staging → Server Operations
QA Contact: myk → justin
Assignee | ||
Comment 2•19 years ago
|
||
Add an "AllowOverride FileInfo" to the stage.mozilla.org vhost config (which should make it honor the .htaccess file).
I also added the smg filetype to archive.mozilla.org while I was in there.
[dave@g4book dave]$ curl -s -I http://stage.mozilla.org/pub/mozilla.org/camino/releases/Camino-1.0rc1.dmg | grep Content-Type
Content-Type: application/x-apple-diskimage
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•