Apache上的字体MIME类型出错

Apache上的字体MIME类型出错,apache,mime-types,font-face,Apache,Mime Types,Font Face,我正在尝试提供一些web字体,采用.otf/.woff/.svg格式。浏览器未呈现字体,我在控制台中看到以下错误: Resource interpreted as Font but transferred with MIME type text/html: "http://localhost/file.woff". Resource interpreted as Font but transferred with MIME type text/html: "http://localhost/fi

我正在尝试提供一些web字体,采用.otf/.woff/.svg格式。浏览器未呈现字体,我在控制台中看到以下错误:

Resource interpreted as Font but transferred with MIME type text/html: "http://localhost/file.woff".
Resource interpreted as Font but transferred with MIME type text/html: "http://localhost/file.otf".
Resource interpreted as Font but transferred with MIME type text/html: "http://localhost/file.svg".

同一组文件在另一个web服务器上也可以正常工作,但在我的本地开发环境中不行,所以我知道HTML/CSS/Font文件没有问题。我正在运行Apache2.2.22。我在.htaccess文件和/etc/apache2/mods available/mime.conf中尝试了许多不同的AddType指令组合,但无论发生什么,我都会继续出现这些错误,字体也不会呈现。我在Chrome和Firefox中都尝试过,但都出现了相同的错误,而且没有渲染。我遗漏了什么?

如果有人遇到这个问题,答案确实是服务器配置问题,带有AddType指令。未正确加载文件,因此未加载配置