How to Enable HSTS in Webmin
HSTS, which is short for HTTP Strict Transport Security, is a security feature that lets a web site tell browsers that it should only be communicated with using HTTPS, instead of using HTTP.
This tutorial will help you setting HSTS in webmin.
First, navigate to "Servers"-->"Apache Webserver", click the virtual server with SSL enabled which you want to edit. Then click "Edit Directives" to edit configuration file manually.
Second, add the following configs to the bottom of the file.
Click "Save and close" and restart Apache by clicking the "Apply Changes" on the top right.
It's done and now HTTP Strict Transport Security has been enabled. You can run a ssl test here to find if it was enabled.
This tutorial will help you setting HSTS in webmin.
First, navigate to "Servers"-->"Apache Webserver", click the virtual server with SSL enabled which you want to edit. Then click "Edit Directives" to edit configuration file manually.
Second, add the following configs to the bottom of the file.
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
Click "Save and close" and restart Apache by clicking the "Apply Changes" on the top right.
It's done and now HTTP Strict Transport Security has been enabled. You can run a ssl test here to find if it was enabled.
Unfortunately, this throws an illegal command error.
ReplyDelete