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

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

Best Regards

Jools

On Sat, Jun 20, 2009 at 03:43:38PM +0100, Jools W. wrote:

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.

On Sat, 2009-06-20 at 18:53 +0400, Igor S. wrote:

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.

Many thanks.

Best Regards

Jools