如何更改MAMP MIME类型 [英] how to change mime types in MAMP

查看:141
本文介绍了如何更改MAMP MIME类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,有一个HTML5视频。它看起来当OGG文件与其他MIME类型不是视频服务如/ OGG格式的Firefox翻转。我已经更新了MAMP /阿帕奇/ config文件夹里面的mime.types文件和多次已经重新启动了MAMP服务器,但OGG文件仍与纯/文本上下文类型的服务。

I'm developing a website that has a HTML5 video. It looks like when ogg files are served with other mime types than video/ogg firefox flips. I've updated the mime.types file inside the mamp/apache/config folder and have restarted the MAMP server multiple times, but ogg files are still served with plain/text context-type.

有人能指出我需要做什么?

Can someone point out what I need to do?

更新

我能够改变的MIME类型的唯一情况是,如果我更改 DefaultType的纯文本/ DefaultType的视频/ OGG 这是愚蠢的。

The only time I'm able to change the mime type is if I change the DefaultType text/plain to DefaultType video/ogg which is stupid.

推荐答案

你有 mod_mime_magic模块安装并启用?是您的MIME魔力正常工作?当你做文件-m 您OGG文件之一,它说这是一个纯文本文件?是的文件扩展名是否正确?

Do you have mod_mime_magic installed and enabled? Is your mime magic working correctly? When you do file -m on one of your OGG files, does it say it is a plain text file? Are the file extensions correct?

这篇关于如何更改MAMP MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆