Faq/General/036/da

    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.

    Hvordan konfigurerer jeg LibreOffice MIME type på en Apache server?

    Hvis du møder problemer med genkendelsen af LibreOffice-filer i nogle browsere (såsom fx at åbne en zip-fil), skal du tjekke indstillingen af MIME-typer.

    Hvis filen mime.types (hvis sti er defineret i din httpd.conf) ikke allerede indeholder vnd.oasis.opendocument-definitionerne, anbefales det ikke at tilføje dem direkte til denne fil (som kunne blive overskrevet i en kommende Apache-opdatering), men hellere til konfigurationsfilen httpd.conf.

    Denne fil er sædvanligvis placeret i mappen:

    • /etc/httpd/conf or /etc/apache/ på en Linux-server
    • [ProgramInstallation]\ apache\conf på en Windows-pc

    Tilføj nedenstående linjer i afsnittet <IfModule mod_mime.c> i filen 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>
    

    Glem ikke at genstarte Apache-serveren for at aktivere ændringerne.