Skip to content

Instantly share code, notes, and snippets.

@kynatro
Created June 1, 2015 16:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kynatro/e43c3b3e933e9d79a67b to your computer and use it in GitHub Desktop.
Save kynatro/e43c3b3e933e9d79a67b to your computer and use it in GitHub Desktop.
nginx web font Content-Type specifications
location ~* \.(woff)$ {
add_header Content-Type "application/font-woff";
}
location ~* \.(otf)$ {
add_header Content-Type "application/font-sfnt";
}
location ~* \.(eot)$ {
add_header Content-Type "application/vnd.ms-fontobject";
}
location ~* \.(ttf)$ {
add_header Content-Type "application/font-sfnt";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment