- Bei welchen Anbieter: Lokal?
- Auf welcher Hardware: Nano r5c
- Betriebssystem: Debian 12.6
- Nextcloud Version: 29.07
- PHP Version: 8.2
- Welche Datenbank: MariaDB
- Apache2
- Netzwerk Aufgliederung: Router
- Wurden vor kurzen Server Updates gemacht von 29.06 auf 29.07
- Habt ihr die Logs angesehen von Nextcloud und von System ja
- Bei was fĂŒr einer Aktion ist der Fehler aufgetreten: Update von 29.06 auf 29.07
Seit den Update von 29.06 auf 29.07 erscheinen folgende Warnhinweise:
Einige Header sind in deiner Instanz nicht richtig eingestellt - Der HTTP-Header
X-Content-Type-Options
ist nicht aufnosniff
gesetzt. Dies stellt ein potenzielles Sicherheits- oder Datenschutzrisiko dar und es wird empfohlen, diese Einstellung zu Àndern. - Der HTTP-HeaderX-Robots-Tag
ist nicht aufnoindex,nofollow
gesetzt. Dies stellt ein potenzielles Sicherheits- oder Datenschutzrisiko dar und es wird empfohlen, diese Einstellung zu Àndern. - Der HTTP-HeaderX-Frame-Options
ist nicht aufsameorigin
gesetzt. Dies stellt ein potenzielles Sicherheits- oder Datenschutzrisiko dar und es wird empfohlen, diese Einstellung zu Àndern. - Der HTTP-HeaderX-Permitted-Cross-Domain-Policies
ist nicht aufnone
gesetzt. Dies stellt ein potenzielles Sicherheits- oder Datenschutzrisiko dar und es wird empfohlen, diese Einstellung zu Àndern. - Der HTTP-HeaderX-XSS-Protection
enthÀlt nicht1; mode=block
. Dies stellt ein potenzielles Sicherheits- oder Datenschutzrisiko dar und es wird empfohlen, diese Einstellung zu Àndern. - DerStrict-Transport-Security
-HTTP-Header ist nicht gesetzt (er sollte mindestens15552000
Sekunden betragen). FĂŒr erhöhte Sicherheit wird empfohlen, HSTS zu aktivieren. Weitere Informationen findest du in der Dokumentation
Meine .htacess schaut so aus:
<IfModule mod_headers.c>
<IfModule mod_setenvif.c>
<IfModule mod_fcgid.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
<IfModule mod_proxy_fcgi.c>
SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<IfModule mod_lsapi.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
</IfModule>
<IfModule mod_env.c>
# Add security and privacy related headers
# Avoid doubled headers by unsetting headers in "onsuccess" table,
# then add headers to "always" table: https://github.com/nextcloud/server/pull/19002
Header onsuccess unset Referrer-Policy
Header always set Referrer-Policy "no-referrer"
Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"
Header onsuccess unset X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
Header onsuccess unset X-Permitted-Cross-Domain-Policies
Header always set X-Permitted-Cross-Domain-Policies "none"
Header onsuccess unset X-Robots-Tag
Header always set X-Robots-Tag "noindex, nofollow"
Header onsuccess unset X-XSS-Protection
Header always set X-XSS-Protection "1; mode=block"
SetEnv modHeadersAvailable true
</IfModule>
# Add cache control for static resources
<FilesMatch "\.(css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite)$">
<If "%{QUERY_STRING} =~ /(^|&)v=/">
Header set Cache-Control "max-age=15778463, immutable"
</If>
<Else>
Header set Cache-Control "max-age=15778463"
</Else>
</FilesMatch>
# Let browsers cache WOFF files for a week
<FilesMatch "\.woff2?$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
</IfModule>
<IfModule mod_php.c>
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddType application/wasm wasm
AddEncoding gzip svgz
# Serve ESM javascript files (.mjs) with correct mime type
AddType text/javascript js mjs
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
Wenn ich folgenden Befehl absetzte:
curl -I bika-the.xxxx.xxx8443
bekomme ich folgende Antwort
HTTP/1.1 400 Bad Request
Date: Sat, 21 Sep 2024 13:21:00 GMT
Server: Apache/2.4.62 (Debian)
Strict-Transport-Security: max-age=31536000
Content-Length: 454
Connection: close
Content-Type: text/html; charset=iso-8859-1
Also sollte eigentlich alles stimmen