Forum Discussion
gvoden_131142
Nimbostratus
May 21, 2014Hosting web fonts on F5 LTM
Hi all,
is there a way to host web fonts on the F5 LTM? How would you go about doing that, and is this a supported setup?
thanks!
Kevin_Stewart
Employee
May 21, 2014Not too terribly difficult I suppose using iFiles. Upload the web fonts as separate iFiles and then use an iRule like this:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/thisfont.ttf" {
HTTP::respond 200 content [ifile get thisfont-ttf] "Content-Type: font/opentype"
}
"/thatfont.ttf" {
HTTP::respond 200 content [ifile get thatfont-ttf] "Content-Type: font/opentype"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects