Created
June 1, 2015 16:22
-
-
Save kynatro/e43c3b3e933e9d79a67b to your computer and use it in GitHub Desktop.
nginx web font Content-Type specifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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