Opened 12 years ago

Closed 11 years ago

#243 closed enhancement (fixed)

Missing mime-types: ppt/doc/xls versus pptx/docx/xlsx

Reported by: launchpad.net/~fisharebest Owned by: Sergey Kandaurov
Priority: minor Milestone:
Component: nginx-core Version: 1.1.x
Keywords: mime mime.types Cc:
uname -a: Linux ip-10-235-87-87 3.2.0-29-virtual #46-Ubuntu SMP Fri Jul 27 17:23:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module

Description

Old (<2006) versions of Microsoft Office files are served with the correct mime type.
New (>2006) versions of these files are not.

The file /etc/nginx/mime-types contains the following lines:

application/vnd.ms-excel xls;
application/vnd.ms-powerpoint ppt;
application/msword doc;

These should be changed to:

application/vnd.ms-excel xls xlsx;
application/vnd.ms-powerpoint ppt pptx;
application/msword doc docx;

I'm using 1.1.19 (as packaged with ubuntu 12.10), but the same problem appears also in SVN trunk:

http://trac.nginx.org/nginx/browser/nginx/trunk/conf/mime.types

Change History (5)

comment:1 by Christian Bönning, 12 years ago

There appear to be additional mime-types for Microsoft Office documents. I've opened a Pull Request on HTML5 Boilerplates version of "mime.types" where all those should be handled.

https://github.com/hexa2k9/server-configs/commit/9f1df6ac18e713b95fa3138f1ca9d1a1824c16a4.patch

Version 0, edited 12 years ago by Christian Bönning (next)

comment:2 by Maxim Dounin, 12 years ago

Keywords: mime mime.types added
sensitive: 0

comment:3 by maxim, 11 years ago

Owner: changed from somebody to Sergey Kandaurov
Status: newassigned

comment:4 by Sergey Kandaurov <pluknet@…>, 11 years ago

In 07ef29f69a54dcc156cfaa20d7b21eee30e26123/nginx:

MIME: added the most common OOXML MIME types (ticket #243).

comment:5 by Sergey Kandaurov, 11 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.