Add MIME Types to Nginx

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:

  1. Use this Chef recipe or create your own.
  2. Add the manifest MIME type to this file.
  3. Commit your changes locally and push them to your remote repository.
  4. Use the ey recipes commands to upload and apply the recipes:

        ey recipes upload -e environment_name 
    ey recipes apply -e environment_name

    Upon 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.


Article is closed for comments.