Change media types for `.atom` and `.rss` files

Modify the configurations so that:

 * `.atom` files are served with the `application/atom+xml`¹ media type
 * `.rss` files are served with the `application/rss+xml`² media type

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://www.iana.org/assignments/media-types/application/atom+xml
² http://tools.ietf.org/id/draft-nottingham-rss-media-type-00.txt

Ref: https://github.com/h5bp/server-configs-apache/pull/50#issuecomment-76552855
     653c461c35

Close h5bp/server-configs-nginx#90
This commit is contained in:
Sylvain Emery 2015-03-19 16:39:45 +01:00 committed by Cătălin Mariș
parent 66be52363e
commit 722e11e432
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
### HEAD ### HEAD
* Minimum nginx version upped from 1.2.1 to current stable, 1.6.0 * Change media types for `.atom` and `.rss` files
[[#90](https://github.com/h5bp/server-configs-apache/issues/90)].
* Minimum nginx version upped from 1.2.1 to current stable, 1.6.0.
### 1.0.0 (October 24 2014) ### 1.0.0 (October 24 2014)

View File

@ -50,7 +50,9 @@ types {
video/x-msvideo avi; video/x-msvideo avi;
# Web feeds # Web feeds
application/xml atom rdf rss xml; application/atom+xml atom;
application/rss+xml rss;
application/xml rdf xml;
application/xslt+xml xsl; application/xslt+xml xsl;
# Web fonts # Web fonts