Internal Server Error - Inter Roman Font

Starting with Shopware 6.5, the Inter Roman font is used in the default theme. It is loaded via the following filename:

/theme/<hash>/assets/font/Inter-roman.latin.var.woff2


Because the file extension .var.woff2 is used, when running Apache2, the Content Negotiation module is triggered, which incorrectly interprets a type map due to the .var directive. Because the type map specification is missing, this results in the Error 500: Internal Server Error



Error Message: Internal Server Error (500)



Solution 1: Enable Serving via nginx

When using the Plesk Control Panel, static files can be served directly by nginx. To do this, log in to the Plesk Control Panel and navigate to the affected domain. On the Hosting & DNS tab, select Apache & nginx Settings.



Then disable the "Serve static files directly through nginx" option and save the changes. The web server configuration will automatically reload, and the font will now load correctly.



Solution 2: Removing the Type-Map Handler

Alternatively, the issue of the font being interpreted incorrectly can also be resolved by disabling the Type-Map handler.


To do this, add the following directive at the end of Shopware’s .htaccess file:

# /var/www/shop-domain.com/httpdocs/public/.htaccess

# [...]

# End Shopware

<IfModule mod_negotiation.c>
    RemoveHandler type-map .var
</IfModule>


If you make this change above the # End Shopware line, your modification will be automatically removed during the next Shopware update.


After saving the changes, the font will load immediately. No restart of Apache or nginx is required.