Closed Bug 183340 Opened 22 years ago Closed 18 years ago

Evangelism - TechNote - Create files for users to fix common MIME-type misconfigurations (.htaccess, etc.)

Categories

(Tech Evangelism Graveyard :: English US, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: choess, Unassigned)

References

Details

(Whiteboard: [evangelism] [post file to te resources] [bug248549notfixed])

Attachments

(2 files, 9 obsolete files)

After reading a comment on bug 95549, it occurred to me that we should 
help users fix MIME-type configurations on their servers. There's a 
widespread misbelief that one needs to be a server administrator to 
change MIME-type configurations; while it's true that that's the only way to 
make *global* changes, many servers are configured to allow users to 
change MIME-type mappings for files in their directory. I suggest that we 
create some files (.htaccess files for Apache; I'd imagine there's an 
equivalent for IIS) correcting some of the common MIME-type deficiencies 
(.css to text/css, .ico as image/x-icon, etc.) and make them available 
among the evangelism resources. This way, people can upload them to 
their page root and fix the problem immediately. (Obviously, we still want 
them to try to convince their server admins to fix the problem, particularly 
with something common like .css files, but this could make it easier for 
people using less common things like SVG and Flash).
very good idea.
Blocks: 175026
Summary: Create files for users to fix common MIME-type misconfigurations (.htaccess, etc.) → Evangelism - TechNote - Create files for users to fix common MIME-type misconfigurations (.htaccess, etc.)
Attached file First draft of .htaccess file (obsolete) —
Here's a first stab at adding some commonly misconfigured MIME-types in an
Apache .htaccess file.
what do you think of this look?
Looks fine to me.
need to post this as a resource
Assignee: bc → english-us
Component: Authors → English US
QA Contact: mgalli → english-us
Whiteboard: [evangelism] [post file to te resources]
Here are some more very commonly misconfigured extensions & MIME types on Apache
servers:

wmv  video/x-ms-wmv
wma  audio/x-ms-wma
asx  video/x-ms-asf
asf  video/x-ms-asf
rar  application/x-rar-compressed
dmg  application/octet-stream

See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22580 for an attempt to
fix this directly in Apache.
Let's post this ASAP because Internet Explorer in Windows XP SP2 requires MIME
types to be set up (more) correctly. There are going to be thousands of
webmasters searching for this configuration info over the next several months.
SVG should be (see bug 157514):

AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddEncoding x-gzip .svgz

.ico should be (see bug 252842):

AddType image/vnd.microsoft.icon .ico
Attached file .svgz added and .ico fixed (obsolete) —
Attached file added bittorrent, removed extra css (obsolete) —
removed redundant css entry, added bittorrent
Attachment #161326 - Attachment mime type: application/octet-stream → text/plain
Attached file Fixed errors (obsolete) —
In the second to last edit of the file, I somehow doubled the first four lines.
The last person to edit the file mostly fixed that problem and then messed up
the MIME type for the .ico extension. This is an attempt to fix all the
problems. I'm marking the previous attachments obsolete since this last version
the most definitive of the bunch, I hope!
Attachment #109317 - Attachment is obsolete: true
Attachment #117503 - Attachment is obsolete: true
Attachment #155486 - Attachment is obsolete: true
Attachment #159590 - Attachment is obsolete: true
Attachment #161326 - Attachment is obsolete: true
Whiteboard: [evangelism] [post file to te resources] → [evangelism] [post file to te resources] [bug248549notfixed]
Attached file New .htaccess file with .m3u added (obsolete) —
Add .m3u extension with MIME type audio/x-mpegurl.
Attachment #161328 - Attachment is obsolete: true
Attached file First Draft of MIME Type Technote (obsolete) —
(In reply to comment #13)
> First Draft of MIME Type Technote

The proper JavaScript MIME-type is application/x-javascript not application/js.
Attachment #169843 - Attachment is obsolete: true
Attachment #170785 - Attachment is obsolete: true
Steve, we should probably put these type documents on devmo.
I was actually just adding information to http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types

I didn't add the How to Determine the MIME Type Sent by a Server section. Do you think I should?
Done.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: