Opened 8 years ago
Closed 8 years ago
#964 closed defect (fixed)
Font files ‘cannot be found’ by web server
Reported by: | Sander Maijers | Owned by: | Sander Maijers |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Website | Version: | |
Keywords: | www.clarin.eu | Cc: |
Description
In the Chrome web browser console:
Failed to load resource: the server responded with a status of 404 (Not Found) https://www2.clarin.eu/sites/all/themes/CLARIN_Horizon/fonts/glyphicons-halflings-regular.woff Failed to load resource: the server responded with a status of 404 (Not Found) https://www2.clarin.eu/sites/all/themes/CLARIN_Horizon/fonts/glyphicons-halflings-regular.ttf Failed to load resource: the server responded with a status of 404 (Not Found)
The media types for the font files are not included in the Apache httpd config, and the Drupal 7.x .htaccess file forbids access to such files without setting that media type in the request header:
https://github.com/drupal/drupal/blob/7.x/.htaccess#L148
Solution
https://www.drupal.org/node/2422431.
Fix Apache httpd image. Preferably by adding the media type lines (AddType ...
) the upstream (Alpine Linux package, Apache) httpd config.
Note: See
TracTickets for help on using
tickets.
See https://github.com/clarin-eric/www-clarin-eu_src/commit/414cfdfa9f1f3956ec4f210ca4a82e6054ca38ba