WebFaction
Community site: login faq

I'm facing the well known 'Firefox CDN' problem, wherein Font Awesome is not loading correctly in Firefox. I have tried the fix given in the above link but it doesn't seem to work. The directory structure we have is:

webapps
    |- mywebsite
    |- staticfiles (for serving static files only)
    |- htdocs

I have tried placing the .htaccess file with the contents:

<FilesMatch ".(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>

in staticfiles, staticfiles/fonts, mywebsite, mywebsite/apache2 and even added it to the httpd.conf file. The problem, however, still persists. Anyone with a possible solution?

asked 09 Oct '13, 01:04

vinayakshukl
111
accept rate: 0%


Your 'staticfiles' application is a static-only app. This means it's served by our front-end Nginx server, which doesn't read .htaccess files.

If you need to use the Apache directives that you've mentioned above, then use a static/cgi/php application for your static files, instead of a static-only application. Static/cgi/php applications are served by our back-end Apache, so your htaccess file will be processed as expected.

Hope that helps!

permanent link

answered 09 Oct '13, 14:50

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×125
×6
×4
×2

question asked: 09 Oct '13, 01:04

question was seen: 6,871 times

last updated: 09 Oct '13, 14:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM