After installing nextcloud on fedora 38, I get this message:
The HTTP header “Strict-Transport-Security” is not set to at least “15552000” seconds. For enhanced security, it is recommended to activate HSTS as indicated in the security elements .
So I followed the security recommendation (when the link works…) : I added this in /etc/httpd/conf.d/virtualhost.conf file:
What @jtr is asking is do you have a proxy service setup in front of your Apache server, like Nginx, Caddy, Cloudflare, etc? For instance if you are using the Nextcloud AIO setup, it automatically sets up a proxy in front of apache, you would then need to change the HSTS on the proxy.
Also have you checked your VirtualHost file? To make sure HSTS is set to 15552000?
Also browsers are lazy, they cache a lot of information, instead of re downloading it, so changes you make might not show in the browser for a few hours/days. Try clearing your cache.