woff2 file can't be accessed on apache webserver

Neta

I'm trying to reach (download or load) a woff2 file on an apache server using hestiacp and I have a 500 error.

In the same folder if I put a ttf file when I reach it it downloads it normally. I tried to manage it with a .htaccess file adding

AddType font/woff2 .woff2

and then even restarting apache it won't work.

I also tried adding this type on my apache configuration file.

CBroe

AH00681: Syntax error in type map, no ':' in /home/admin/web/*.com/public_html/font/Inter-roman.var.woff2 for header wof2

The server thinks your woff2 file was actually a type map - but since it doesn't find any : in there, it doesn't consider it to be a valid type map file.

The reason / connection to content negotiation, is that the default configuration for that typically includes

AddHandler type-map .var

(https://httpd.apache.org/docs/2.4/content-negotiation.html#negotiation)

And as https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addtype says,

Filenames may have multiple extensions and the extension argument will be compared against each of them.

This behavior is not configurable as far as I know, this is hard-coded functionality.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Uploaded file can't be accessed

View contents of a .woff2 font file

Can't connect to Apache webserver running on Ubuntu 20.04 headless server

spring boot 2 on VPS can't be accessed

WeatherKit can't be accessed

File can't be accessed because it's being used by another process

Can't connect from outside to my apache webserver using a free dynamic dns and IP

Can’t connect to Apache webserver via HTTPS (HTTP works just fine)

Display .pgm image file on apache webserver

One of my pdf files in my apache server can be accessed the other can't, with the same permissions and same directory

Can't run PHP file with apache2

error [ModuleException] Doctrine2: Module can't be accessed

No header mapping was specified, the record values can't be accessed by name (Apache Commons CSV)

Shiny server running on localhost can't be accessed from web when redirected by apache

How to configure Apache WebServer to be accessed by public domain (or static IP) I have?

How can I scope a CMake function so it can't be accessed from outside a file?

Apache can't open file that is a symlink

Apache 2 Webserver on Raspbian not loading any Images

how to configue my apache2 webserver?

MAAS Apache2 Webserver configuration

Running CUPS next to Apache2 Webserver

How can I only use Latin subset with Google Fonts WOFF2 files?

Font rendering in Chrome (woff2) - after load font family doesn't want to change

Permission issue when writing file on webserver (flask, apache & wsgi)

How I can turn off unknown webserver (Apache probably)?

How can I watch the current connections on my Apache webserver?

How can I secure an OpenBSD-based Apache webserver?

The instance member 'currentComponentConfiguration' can't be accessed in an initializer

Coingecko links properties can't be accessed