// I got bounced the first time I sent this to the redhat-list
 // (even though i was subscribed via the post-only), but what
 // the heck :) I re-subscribed and will try again.  Thus, this
 // will be a repeat for the [EMAIL PROTECTED] folks :) Please
 // bear with me :)  Jeff.

I've got a couple of suggestions for lines that should be added
to the mime.types file to accomodate proper handling of certain
MS-DOS files by Linux programs.

The 1st suggestion concerns the proper handling of MS-DOS
executables being served out by the Apache web server (httpd)
from people's home pages: 

In /etc/mime.types, you might want to change the line that
reads: 

        application/octet-stream        bin

to 

        application/octet-stream        bin exe com

so that the Apache server can better serve out MS-DOS .exe
and .com files that have been linked to on peoples' home pages. 

Explanation:

Suppose I make an http link to an executable that I want people
to be able to download from my (personal) page.*  Now, when they
left-click on the link, I want the Apache server to tell their
browser that this executable is of mime type
'application/octet-stream'.  This way, their browser will most
likely respond by giving them a 'Save As..' dialog box, instead
of just catting the executable's contents to their browser's
window.  (Yes, the viewer can still get this behavior out of
their browser by just holding down the shift key while
left-clicking, but many folks don't know this.)

*An example of this can be found on
  <a href="http://eclectic.ss.uci.edu/~jstern/jeff.html">
my own home page </a>.
Go to the bottom, where you will see a link to the public domain
MS-DOS executable version of the UNIX command 'mv'. The program
name is 'mv.exe'. If you left-click on it, using Netscape for
Win95, you should get a 'Save-As' dialog box.  It should NOT cat
the executable to your screen.  The reason you're getting this
correct behavior is because I've added the above line to my
/etc/mime.types file.

Jeff Stern <[EMAIL PROTECTED]>

"..more brutal and inhumane than any other communist regime in the world."
--Alexander Solzhenytsin, describing the Chinese regime in Tibet.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to