Strict-Transport-Security" HTTP header #1697
-
Ho everyone, For the last three weeks I've been trying to do what Nextcloud asks me: " The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗." I've read hundreds of questions about this and all the documentation, I've tried "/var/lib/docker/volumes/nextcloud_aio_apache" but no config file. And force the redirect to HTTPS is in the same file? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Are you using a reverse proxy? |
Beta Was this translation helpful? Give feedback.
-
Solution:
|
Beta Was this translation helpful? Give feedback.
-
for my nextcloud 30 installation (Ubuntu bullseye, Raspberry Pi 5 8GB) none of all those many suggestions to solve the HSTS Problem has helped -- until I had the absolutely crazy idea to add the famous line not only to the <VirtualHost *:443> section of my apache2 config file, but to the <VirtualHost *:80> section as well. Luckily, I don't care for the crazyness of ideas, I just look for their results... |
Beta Was this translation helpful? Give feedback.
-
I am running NC 30.0.4 on docker (via unraid) with a nginx reverse proxy. I was wondering for quite some time why I got the warning, because my reverse proxy was configured correctly and I could also see the header in my session (firefox) to be set correctly. While trying to check your different solutions, I also found this:
I simply removed the comment, restarted my docker and the warning is gone.
Maybe it will help somebody else as well :) |
Beta Was this translation helpful? Give feedback.
Solution:
#1697 (reply in thread)