Skip to content

Instantly share code, notes, and snippets.

@kynatro kynatro/nginx.conf
Created Jun 1, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.