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

Igor Sysoev is at rambler-co.ru
Sat Jun 20 18:53:02 MSD 2009


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/





More information about the nginx mailing list