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.
Comments
Article is closed for comments.