MIME types are used to identify the type of information that a file contains. This document shows you how to add a MIME type to your Nginx configuration.
Add MIME Types
The best way to add a MIME type to your Nginx configuration is to use a custom Chef recipe.
To add MIME types using a custom Chef recipe:
- Use this Chef recipe or create your own.
- Add the manifest MIME type to this file.
- Commit your changes locally and push them to your remote repository.
-
Use the ey recipes commands to upload and apply the recipes:
ey recipes upload -e environment_name
ey recipes apply -e environment_nameUpon a successful run, the file at
/data/nginx/mime.types
will include your newly added mime types.
More information
For more information about... | See... |
---|---|
Chef recipes | Customize Your Environment with Chef Recipes. |
Customizing Nginx | Customize Nginx. |
If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.
Hello,
This link " Chef recipe" (https://github.com/jimneath/ey-cloud-recipes/tree/master/cookbooks/mime_types) isn't working.
Hi Igor,
Looks like Jim removed his fork of ey-cloud-recipes; our main repository where our *non-supported* chef recipes are for you to get yourself started (think of them as training wheels, not a permanent/official solution) is here: https://github.com/engineyard/ey-cloud-recipes/tree/master/cookbooks - however, it doesn't look like we still maintain a mime types recipe.
I'll ping Jim here internally and ask if he has a backup we can put up somewhere. Thanks for pointing that out.
Hi, Is there any update on this? Would be great to have this recipe and save some time.