Office 2007 Mime-Types for Apache

Ran into a problem today where users were trying to download Office 2007
documents from a web site, but were prompted to save them as a Zip file.
Turns out the new extensions for Office 2007 documents (docx, xlsx,
pptx, etc) need to be added with a new mime-type for Apache to serve
them up correctly.

It’s a pretty simple fix.

In /etc/mime.types add this:

application/vnd.openxmlformats docx pptx xlsx

Save and restart Apache, then the documents should be handled correctly.

About Will Chatham

Will Chatham is a Cyber Security Assurance Analyst at a government data center. Since Netscape 2.0, he has worked in a wide array of environments including non-profit, corporate, small business, and government. His varied background, from developer to search engine optimizer to security professional, has helped him build a wide range of skills that serve people well in the current web-based world.

5 comments

Leave a Reply