# HG changeset patch
# User Michiel Leenaars <[email protected]>
# Date 1504563233 -7200
#      Tue Sep 05 00:13:53 2017 +0200
# Node ID 85e82dd57aa77dd95a28762c65ffa0824681dcd0
# Parent  b31eb2901b627733dd3d9aaa07ce8071aa7c5dad
Added StarOffice/OpenOffice.org File Formats to mime.types

OpenOffice.org and its commercial sibling StarOffice were the most popular
cross-platform office alternative for quite a few years, running on *NIX,
Windows, Linux and other OS-es. They were the predecessor to popular open
source office suites such as Apache Open Office, LibreOffice, NeoOffice and
Lotus Symphony - with many millions of users around the world.

This patch adds the family of file formats from those applications to the
mimetypes recognised by Nginx. Apache has had these exact same mimetypes in
their mimetype catalog for many years, as do other webservers like Lighttpd.

The use case is simple: people migrating their static website from
another webserver that did support these mime types results in broken
user experience. Including these file formats is a service to those
individuals and organisations around the world that together still have many
archives online containing legacy StarOffice/OpenOffice.org files (note that
quite a few other filetypes concern legacy file formats such as RealAudio, Word
and RTF). The mimetypes suggested are officially registered at IANA.

diff -r b31eb2901b62 -r 85e82dd57aa7 conf/mime.types
--- a/conf/mime.types   Mon Sep 04 23:59:17 2017 +0200
+++ b/conf/mime.types   Tue Sep 05 00:13:53 2017 +0200
@@ -68,6 +68,23 @@
     application/vnd.openxmlformats-officedocument.spreadsheetml.sheet          
xlsx;
     application/vnd.openxmlformats-officedocument.presentationml.presentation  
pptx;
 
+    application/vnd.stardivision.chart                                         
 sds;
+    application/vnd.stardivision.calc                                          
 sdc;
+    application/vnd.stardivision.writer                                        
 sdw;
+    application/vnd.stardivision.writer-global                                 
 sgl;
+    application/vnd.stardivision.draw                                          
 sda;
+    application/vnd.stardivision.impress                                       
 sdd;
+    application/vnd.stardivision.math                                          
 sdf;
+    application/vnd.sun.xml.writer                                             
 sxw;
+    application/vnd.sun.xml.writer.template                                    
 stw;
+    application/vnd.sun.xml.writer.global                                      
 sxg;
+    application/vnd.sun.xml.calc                                               
 sxc;
+    application/vnd.sun.xml.calc.template                                      
 stc;
+    application/vnd.sun.xml.impress                                            
 sxi;
+    application/vnd.sun.xml.impress.template                                   
 sti;
+    application/vnd.sun.xml.draw                                               
 sxd;
+    application/vnd.sun.xml.draw.template                                      
 std;
+    application/vnd.sun.xml.math                                               
 sxm;
     application/vnd.oasis.opendocument.text                                    
 odt;
     application/vnd.oasis.opendocument.text-template                           
 ott;
     application/vnd.oasis.opendocument.text-web                                
 oth;
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to