I would like to prevent users accessing my website using http. Instead, I want to enforce the use of https.
Usually, I have my websites hosted at providers who simply have a checkbox "Enforce https".
In this case, I have my own Ubuntu (nginx) server.
I would like to know if I can also enforce https server wide, or do I have to work with a preload flag in the HSTS header?
Can anybody point me to a document that describes how to resolve this issue with my configuration?
Thank you!