# Specifying additional mime types

**URL:** <https://www.ruby-forum.com/t/specifying-additional-mime-types/199854>\
**Category:** NGINX\
**Created:** [November 30, 2010, 7:50am UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854 "2010-11-30T07:50:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 30, 2010, 7:50am UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854/1 "2010-11-30T07:50:18Z")

</div>

Hello,  
I’m currently including the default table on mime types: include  
mime.types;

I would like to add two additional mime types not included in this list,  
I should edit the file directly (which I dislike) or can I add another  
types {} block in nginx.conf directly and they will be merged?

Thanks.

Posted at Nginx Forum:

> **[specifying additional mime types](https://forum.nginx.org/read.php?2,154321,154321#msg-154321)**
>
> Hello, I'm currently including the default table on mime types: include mime.types; I would like to add two additional mime types not included in this list, I should edit the file directly (which I dislike) or can I add another types {} block in...

---

<div class="post-metadata">

**Author:** ![masterkain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@masterkain](https://www.ruby-forum.com/u/masterkain)\
**Post date:** [November 30, 2010, 10:44am UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854/2 "2010-11-30T10:44:34Z")

</div>

On Tue, Nov 30, 2010 at 01:48:59AM -0500, masterkain wrote:

> Hello,  
> I’m currently including the default table on mime types: include  
> mime.types;
> 
> I would like to add two additional mime types not included in this list,  
> I should edit the file directly (which I dislike) or can I add another  
> types {} block in nginx.conf directly and they will be merged?

You should add them in mime.types.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![masterkain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@masterkain](https://www.ruby-forum.com/u/masterkain)\
**Post date:** [November 30, 2010, 1:56pm UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854/3 "2010-11-30T13:56:03Z")

</div>

On 11/30/2010 06:43 AM, Igor S. wrote:

> On Tue, Nov 30, 2010 at 01:48:59AM -0500, masterkain wrote:
> 
> You should add them in mime.types.

Hi Igor,

Can you add: “audio/ogg ogg;” to the list?

Thanks

---

<div class="post-metadata">

**Author:** ![masterkain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@masterkain](https://www.ruby-forum.com/u/masterkain)\
**Post date:** [November 30, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854/4 "2010-11-30T14:19:14Z")

</div>

On Tue, Nov 30, 2010 at 09:54:38AM -0300, Juan Fco. Giordana wrote:

> On 11/30/2010 06:43 AM, Igor S. wrote:
> 
> > On Tue, Nov 30, 2010 at 01:48:59AM -0500, masterkain wrote:
> > 
> > You should add them in mime.types.
> 
> Hi Igor,
> 
> Can you add: “audio/ogg ogg;” to the list?

Done.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![masterkain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@masterkain](https://www.ruby-forum.com/u/masterkain)\
**Post date:** [November 30, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/specifying-additional-mime-types/199854/5 "2010-11-30T15:10:55Z")

</div>

On 11/30/2010 10:18 AM, Igor S. wrote:

> On Tue, Nov 30, 2010 at 09:54:38AM -0300, Juan Fco. Giordana wrote:
> 
> > Hi Igor,
> > 
> > Can you add: “audio/ogg ogg;” to the list?
> 
> Done.

Thanks.
