I could not find one topic on HSTS here on askubuntu.com yet so here it comes:
I want to setup HSTS so that my webserver will force the browsers to use HTTPS.
Does anyone know how to set this up for apache2 in a proper way?
I could not find one topic on HSTS here on askubuntu.com yet so here it comes:
I want to setup HSTS so that my webserver will force the browsers to use HTTPS.
Does anyone know how to set this up for apache2 in a proper way?
It's really yout application that should be setting this imho, but you can use
Header set
to make apache do it:Its Really simple you just need to add one line to your .htaccess file on server
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
Thats it