1. Logon to Kloxo.
2. Choose Domains -> yourdomainname.com -> Web Features -> change exisiting HTTPS header to:
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always
click Update
3. Then Choose Domains -> yourdomainname.com -> Web Basics -> select Force Redirect 'domain.com' To '
www.domain.com' and Force Redirect 'http' To 'https' then click Update.
4. Edit /opt/configs/nginx/conf/domains/yourdomainname.com and change line (only the first occurence, leave the second one untouched):
Change:
if ($host ~* ^(yourdomainname.com)$) {
rewrite ^/(.*) 'http://www.yourdomainname.com/$1' permanent;
}
to
if ($host ~* ^(yourdomainname.com)$) {
rewrite ^/(.*) 'https://yourdomainname.com/$1' permanent;
}
and save the file.
5. Restart nginx with:
service nginx restart
6. Go to:
https://hstspreload.org/Enter your domain and click the button under domain field.
7. Check both checkboxes "I am the site owner..." and "I understand that preloading...". and click "Submit..." button.