I have my nextcloud in a subdomain on an 1&1 Webspace folder.
Now I try to configure everything in proper way.
In the section “Security warnings” I found this:
Der "Strict-Transport-Security“-HTTP-Header ist nicht auf mindestens "15552000“ Sekunden eingestellt. Für mehr Sicherheit wird das Aktivieren von HSTS empfohlen, wie es in den Sicherheitshinweisen erläutert ist.
In the help file I found the following:
Enable HTTP Strict Transport Security
While redirecting all traffic to HTTPS is good, it may not completely prevent man-in-the-middle attacks. Thus administrators are encouraged to set the HTTP Strict Transport Security header, which instructs browsers to not allow any connection to the Nextcloud instance using HTTP, and it attempts to prevent site visitors from bypassing invalid certificate warnings.
This can be achieved by setting the following settings within the Apache VirtualHost file:
<VirtualHost *:443> ServerName cloud.nextcloud.com <IfModule mod_headers.c> Header always set Strict-Transport-Security “max-age=15552000; includeSubDomains” </IfModule> </VirtualHost>
We recommend the additional setting
; preload to be added to that header. Then the domain will be added to an hardcoded list that is shipped with all major browsers and enforce HTTPS upon those domains. See the HSTS preload website for more information. Due to the policy of this list you need to add it to the above example for yourself once you are sure that this is what you want. Removing the domain from this list could take some months until it reaches all installed browsers.
This example configuration will make all subdomains only accessible via HTTPS. If you have subdomains not accessible via HTTPS, remove
This requires the
mod_headers extension in Apache.
I am totally new with nextcloud.
I do not understand what to do to solve this.
I think I have no right to influence the 1&1 server?
Would be very glad if someone could explain me what to do on this.
Thanks for your help and patience.