docx files downloading as .zip file from apache

  • 7009160
  • 11-Aug-2011
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
Novell NetWare 6.5 Support Pack 8
SUSE Linux Enterprise Server 10 Service Pack 3

Situation

Secure storage area configured on Apache for file storage etc, .docx (openxmlformated) documents are offered as .zip files when selected to download.

Resolution

in NetWare:
edit the \sys\apache2\conf\httpd.conf by adding the following line:

AddType application/vnd.openxmlformats .docx .pptx .xlsx

Stop and start all web services:
tc4stop
ap2webdn
tomcat4
ap2webup

in Linux:
edit /etc/mime.types and add the following line:

application/vnd.openxmlformats docx pptx xlsx

Restart Apache and Tomcat:
rcapache2 restart
rcnovell-tomcat5 restart

Additional Information

The package engineering provided in bug 470252 for NetWare works if the modifications in this TID do not work.