DrDamnit
asked on
office 2007 mime type for apache
When attempting to download a pptx file from this link:
http://www.l-3.com/private/index.php?dir=L3ByaXZhdGUvaWVlZQ==
It shows up as a zip file. How do I fix this so that it opens with Powerpoint?
Server: Apache2 on Ubuntu 9.x
http://www.l-3.com/private/index.php?dir=L3ByaXZhdGUvaWVlZQ==
It shows up as a zip file. How do I fix this so that it opens with Powerpoint?
Server: Apache2 on Ubuntu 9.x
ASKER
@echo:
Yes. I know. That's why it's posted in the Apache zone. :-)
Yes. I know. That's why it's posted in the Apache zone. :-)
Oh, sorry. It showed up in my alerts, and I didn't look at the zone!
But that FAQ has a link to here:
http://www.vladville.com/2007/04/office-2007-mime-types-for-apache.html
Does that help?
But that FAQ has a link to here:
http://www.vladville.com/2007/04/office-2007-mime-types-for-apache.html
Does that help?
ASKER
I added the following, restarted apache, and it is still not working...
/etc/mime.types:
#<--- ADDED FOR OFFICE 2007 COMPATIBILITY --->#
application/vnd.ms-word.document.macroEnabled.12 .docm
application/vnd.openxmlformats .docx .pptx .xlsx
application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx
application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx
application/vnd.ms-word.template.macroEnabled.12 .dotm
application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx
application/vnd.ms-powerpoint.template.macroEnabled.12 .potm
application/vnd.openxmlformats-officedocument.presentationml.template .potx
application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12 .pptm
application/vnd.ms-excel.addin.macroEnabled.12 .xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 .xlsm
application/vnd.ms-excel .xlt .xla
application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx
application/vnd.ms-excel.template.macroEnabled.12 .xltm
application/vnd.ms-xpsdocument .xps
application/application/vnd.ms-powerpoint .ppt .pot .pps .ppa
application/msword .doc .dot
Where did you add that text?
You need to add it (from line 3 on) to the file /etc/mime.types, not to the Apache conf file, and not to a htaccess.
You need to add it (from line 3 on) to the file /etc/mime.types, not to the Apache conf file, and not to a htaccess.
ASKER
That's exactly where I put it.
Could you post the contents both of your /etc/mime.types and httpd.conf?
Also: is there a htaccess file in the web folder that serves those files? If yes, post that one, too, please.
Also: is there a htaccess file in the web folder that serves those files? If yes, post that one, too, please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Office files don't download correctly from a Web Server; saved as zip files instead
http://www.pptfaq.com/FAQ00911.htm