Mime Types (Apache vs Office 2K7)

Just a quick boring post about an issue I had with our Apache server at work and the new office 2007 documents….

You may not bump into these issues if you didn’t setup your web server from the ground up but if you do, here’s a quick fix…

We’ll the description:
When you open a link to a newer office document, for example, PowerPoint 2007 (pptx) apache may assume the document is a zip format and direct your browser to open the file with the application associated with zip files.  To fix this simply update the associations in the mime.types file located @ /etc/mime.types (sudo gedit /etc/mime.types)

application/msword                                doc dot  docx
application/ms-excel                              xls xlb xlt xlsx
application/ms-powerpoint                 ppt pps pptx

Added items in red.

After you save the file, restart Apache and your golden…  (sudo /etc/init.d/apache2 restart)

Posted: September 29th, 2009
at 9:33am by aitch>ke

Tagged with , , , , , ,


Categories: Linux

Comments: 1 comment



 

One Response to 'Mime Types (Apache vs Office 2K7)'

Subscribe to comments with RSS or TrackBack to 'Mime Types (Apache vs Office 2K7)'.

  1. I added the mime types (docx and xlsx) to the mime.types file, and now instead of a .zip for .xlsx and .docx files IE8 labels them as .xls and doc and thus when they are opened a converter error messages pops up that requires multiple clicks before the document opens.

    The computers are using IE8 and Office 2010
    The server is running Red Hat Enterprise Linux 5.2

    Marc

    27 Jul 10 at 3:12 pm

     


 

Leave a Reply