Faq/General/036/en

How to configure the LibreOffice MIME type with an Apache server?
If you encounter problems with the recognition of LibreOffice files by some browsers (such as trying to open a zip file for example), check the setting of "MIME types".

If the mime.types file (whose path is defined in your httpd.conf) does not already contain the vnd.oasis.opendocument definitions, it is not recommended to add them directly to this file (which could be overwritten in a future Apache update) but rather to the Apache httpd.conf configuration file.

This file is usually located in the directory:
 * /etc/httpd/conf or /etc/apache/ on a Linux server
 * [ProgramInstallation]\ apache\conf on a Windows PC

Add the following lines in the  section of the httpd.conf : #  - source: https://wiki.documentfoundation.org/Faq/General/036 # Declaration of MIME types for documents in ODF format: AddType application/vnd.oasis.opendocument.text .odt AddType application/vnd.oasis.opendocument.text-template .ott AddType application/vnd.oasis.opendocument.text-web .oth AddType application/vnd.oasis.opendocument.text-master .odm AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.spreadsheet-template .ots AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.presentation-template .otp AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.graphics-template .otg AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.image .odi # for managing extensions: AddType application/vnd.openofficeorg.extension oxt #  Don't forget to relaunch the Apache server to make the changes active.