Office 2007 Mime-Types for Apache

Ran into a prob­lem today where users were try­ing to down­load Office 2007
doc­u­ments from a web site, but were prompted to save them as a Zip file.
Turns out the new exten­sions for Office 2007 doc­u­ments (docx, xlsx,
pptx, etc) need to be added with a new mime-type for Apache to serve
them up correctly.

It’s a pretty sim­ple fix.

In /etc/mime.types add this:

application/vnd.openxmlformats docx pptx xlsx

Save and restart Apache, then the doc­u­ments should be han­dled correctly.

 

2 Responses to “Office 2007 Mime-Types for Apache”

  1. Anna says:

    could you bet­ter explain where to change this

  2. Will says:

    Hi Anna,
    The file you need to edit is in the /etc direc­tory and it is called mime.types

    Hope that helps!

Leave a Reply