New Application Types for MS Word

Have you ever wondered why the new Microsoft 2007 Word file type (.docx) can not be downloaded directly from your Apache server? Well, the answer is because it doesn’t recognize what kind of application type it is, therefore it can’t send the correct header information to your browser. Fortunately, the fix for this is rather simple with Apache. Just add these application types for MS Word to your server’s httpd configuration (httpd.conf or apache2.conf) and files will start downloading like magic.

# New Application Types for MS Word.
addtype application/onenote                                                         onetoc onetoc2 onetmp onepkg
addtype application/vnd.ms-excel.addin.macroEnabled.12                              xlam
addtype application/vnd.ms-excel.sheet.binary.macroEnabled.12                       xlsb
addtype application/vnd.ms-excel.sheet.macroEnabled.12                              xlsm
addtype application/vnd.ms-excel.template.macroEnabled.12                           xltm
addtype application/vnd.ms-powerpoint.addin.macroEnabled.12                         ppam
addtype application/vnd.ms-powerpoint.presentation.macroEnabled.12                  pptm
addtype application/vnd.ms-powerpoint.slide.macroEnabled.12                         sldm
addtype application/vnd.ms-powerpoint.slideshow.macroEnabled.12                     ppsm
addtype application/vnd.ms-powerpoint.template.macroEnabled.12                      potm
addtype application/vnd.ms-word.document.macroEnabled.12                            docm
addtype application/vnd.ms-word.template.macroEnabled.12                            dotm
addtype application/vnd.openxmlformats-officedocument.presentationml.presentation   pptx
addtype application/vnd.openxmlformats-officedocument.presentationml.slide          sldx
addtype application/vnd.openxmlformats-officedocument.presentationml.slideshow      ppsx
addtype application/vnd.openxmlformats-officedocument.presentationml.template       potx
addtype application/vnd.openxmlformats-officedocument.spreadsheetml.sheet           xlsx
addtype application/vnd.openxmlformats-officedocument.spreadsheetml.template        xltx
addtype application/vnd.openxmlformats-officedocument.wordprocessingml.document     docx
addtype application/vnd.openxmlformats-officedocument.wordprocessingml.template     dotx

You must be logged in to post a comment.