nginx how to override/add single mime-type
I tried to add markdown rendering by putting
types { text/markdown md; }
into server
section, but then index.html stopped to be rendered all of a sudden. I can explain this only if types
overrides the whole set of mime types for this section.
So, is there a way to just add mime-type for Markdown without touching anything else?
Solution 1:
Add it in a mime.types file and include it from the http stanza as demonstrated in:
http://wiki.nginx.org/FullExample
Adding in the line:
text/markdown md;
to the mime.types file