Include typical font files like ttf in the default mime.types

Otto Kekäläinen otto at seravo.fi
Mon Jan 2 14:06:15 UTC 2017


Hello!

I noticed the default mime.types in Nginx does not include some very
common assets, like ttf font files:
https://github.com/nginx/nginx/blob/master/conf/mime.types

I suggest the mime.types should be extended to include at least these:

    application/x-font-ttf                ttf;
    application/vnd.ms-opentype           otf;


A fairly extensive and well tested list combiled by multiple people
with HB5P authority can be viewed at:
https://github.com/h5bp/server-configs-nginx/blob/master/mime.types

I'd recommend adopting the full listing above to fix the font issues
and probably many other issues in one go.


More information about the nginx-devel mailing list