Welcome! Log In Create A New Profile

Advanced

Re: [warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:28

June 20, 2009 10:53AM
On Sat, Jun 20, 2009 at 03:43:38PM +0100, Jools Wills wrote:

> getting the warning
>
> [warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:28
>
> using nginx 0.7.59
>
> that line reads
>
> gzip_types text/plain text/html text/css application/x-javascript
> text/xml application/xml application/xml+rss text/javascript;
>
> the only other reference I have to it is in my mime.types file
>
> types {
> .. in here
> }
>
> should it not be in both ? this warning appeared when upgrading from
> 0.6.34

No. gzip_types always includes "text/html" and in 0.7.x warns about this.
You need just to remove it from gzip_types or ignore the warning.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

[warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:28

Jools Wills June 20, 2009 10:43AM

Re: [warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:28

Igor Sysoev June 20, 2009 10:53AM

Re: [warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:28

Jools Wills June 20, 2009 11:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 366
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready