Fehler 500 - htaccess

Hallo,

nach der Aktualisierung der Server in den letzten Tagen, gibt es Probleme mit meiner Seite (Fehler 500). Problem ist die htaccess Datei (die Standard-htaccess Datei von contao.org). Ich konnte das Problem auf einen Bereich eingrenzen, ohne diesen funktioniert meine Seite:

##
# Gzip compression
# @see https://github.com/h5bp/html5-boilerplate
##
<IfModule mod_deflate.c>
  # Current Apache versions (>= 2.2)
  <IfModule filter_module>
    FilterDeclare   COMPRESS
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/html
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/css
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/plain
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/x-component
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/javascript
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/json
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xhtml+xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/rss+xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/atom+xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/vnd.ms-fontobject
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/svg+xml
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/x-icon
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/x-font-ttf
    FilterProvider  COMPRESS  DEFLATE resp=Content-Type $font/opentype
    FilterChain     COMPRESS
    FilterProtocol  COMPRESS  DEFLATE change=yes;byteranges=no
  </IfModule>
  # Legacy Apache versions
  <IfModule !mod_filter.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
  </IfModule>
</IfModule>

Worin liegt der Fehler in diesem Bereich? Kann mir da jemand helfen?

Edit: Falls von Interesse; die komplette original .htaccess gibt es dort: raw.github.com/contao/core/mast … ss.default

Hallo Skatol,

wie sieht die Fehlerseite aus? Ist eine Seite mit großer schwarzer Schrift in Times New Roman oder eine mit kleiner Schrift und dem bplaced-Schriftzug?

Hi thorr,

die Schriftart ist bei mir vom Browser abhängig :wink: aber definitiv ohne bplaced-Schriftzug. Damit es keine Missverständnisse gibt, habe ich einen Screenshot erstellt; siehe Anhang.

Edit: Was wurde denn am Server bezüglich der Verarbeitung der htaccess-Dateien genau geändert? Wenn ich das wüsste, kann ich das Problem auch an die Contao-Macher weitergeben.

Ich hab mal ein bisschen gegoogelt und das dürfte ein Volltreffer sein: github.com/contao/core/issues/4552. Wir haben vor kurzem den Apache auf die neueste Version 2.4 aktualisiert, die anscheinend nun eine andere Syntax für FilterProvider erwartet.

Vielleicht hilft dir das ja dann weiter. Wenn du ein Backup von deinen Daten gemacht hast, kannst du ja mal ausprobieren die Datei durch die dortige Version zu ersetzen.

Hallo thorr,

tausend Dank! Mit der neuen Datei (und entfernen des Blocks “Current Apache versions (>= 2.1)” und einkommentieren von “Upcoming Apache versions (>= 2.4)”) funktioniert die Seite wieder.