h5bp / server-configs

Boilerplate configurations for various web servers.
3.1k stars 412 forks source link

Duplicated media type in Nginx gzip directive #144

Closed philippbecker closed 11 years ago

philippbecker commented 11 years ago

Something confusing happens at the recent changes of the Nginx server configs. Like already mentioned in the comments of the nginx.conf is the media type text/html compressed by default. But the type is a few lines above enabled which will cause a duplicated MIME type error at Nginx start, because it collides with the mime.types file value.

I also don't understand why the following media types are listed in the gzip_types directive:

application/atom+xml
application/rss+xml

Because in the mime.types file is defined:

application/xml                       atom rdf rss xml;

From my point of view the media types atom/rss+xml are obsolete.. or not?

alrra commented 11 years ago

@theluckyzombie thanks for spotting that (solved in bccd592886c8b63cee5727ab22bea37b9f155511).

I also don't understand why the following media types are listed in the gzip_types directive ...

In case some other parts of the setup (e.g.: php, ruby on rails, etc.) overwrite those MIME-types.