Faq/General/036

    From The Document Foundation Wiki
    < Faq‎ | General
    This page is a translated version of the page Faq/General/036 and the translation is 100% complete.
    Other languages:

    Hoe configureer ik het LibreOffice MIME-type met een Apache-server?

    Als er een probleem is dat een LibreOffice bestand niet herkend wordt op een webbrowser (bijvoorbeeld bij het openen van een ZIP-bestand), controleer dan de instellingen van de "MIME types".

    Als het bestand mime.types (pad is gedefinieerd in je bestand httpd.conf) nog geen vnd.oasis.opendocument definities bevat, voeg ze dan niet direct toe aan dit bestand (het kan overschreven worden bij een Apache update) maar in het configuratie-bestand van Apache httpd.conf.

    Dit bestand staat meestal:

    • Linux: /etc/httpd/conf of /etc/apache/
    • Windows: [ProgramInstallation]\ apache\conf

    voeg zo nodig de volgende regels toe in de sectie <IfModule mod_mime.c> van httpd.conf :

     # <add LibreOffice> - 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
     # </Add LibreOffice>
    

    De wijzigingen worden pas actief bij het herstarten van Apache.