Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED 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:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,427
    Likes Received:
    1,960
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    That is great, thank you for your quick response, much appreciated!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,427
    Likes Received:
    1,960
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, this is fixed in today's EasyApache 4 maintenance release:

    EA-3773 - mime.types paths are not matched in between paths.conf and httpd.conf: paths.conf: use correct value for file_conf_mime_types

    The full EasyApache 4 change log should be updated later today:

    EasyApache 4 Change Log 2018 - EasyApache 4 - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice