I had a warning in the admin, The following message:
The “Strict-Transport-Security” HTTP header is not configured to at least “15552000” seconds.
I followed the guide on https://docs.nextcloud.com/server/12/admin_manual/configuration_server/harden_server.html#enable-hsts-label
I copied en paste the following code in the .htacces file:
Header always set Strict-Transport-Security “max-age=15552000; includeSubDomains”
I changed the ServerName to my domain.
When I go to my domain, I get a 500 Internal Server Error
I removed the code, but I still can’t reach my domain. How can I fix this and the above warning?