The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mime type woff & woff2

Discussion in 'EasyApache' started by sehh, Aug 30, 2016.

Tags:
  1. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    Hello everyone,

    I noticed that in all our servers, we have to change the mime type of various extensions because the mime.types file supplied by EA3/EA4 is rather outdated.

    To be more specific, woff2 does not exist in /etc/apache2/conf/mime.types, while woff does exist but it is wrong "application/x-font-woff" since it should be "application/font-woff".

    Maybe EA4 could take the latest mime.types from CentOS 7 or something similar? It would be very helpful.

    In case you are wondering why this is important, it is because a broken mime type causes the cache to fail, like a transparent proxy cache. It also causes havoc with htaccess that tries to set cookie/cache/gzip compression on files by type like AddOutputFilterByType.

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    EasyApache 4 should use /etc/mime.types:

    Code:
    # grep mime /etc/cpanel/ea4/paths.conf
    file_conf_mime_types=/etc/mime.types
    However, it's not using that file based on the default Apache configuration:

    Code:
    # grep mime /etc/apache2/conf/httpd.conf
    <IfModule mime_module>
        TypesConfig conf/mime.types
    Internal case EA-3773 is open to address this issue. I'll update this thread with more information on the status of this case as it becomes available.

    Thank you.
     
  3. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    That is great, thank you for your quick response, much appreciated!
     
Loading...

Share This Page