• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Add Strict Transport Security (HSTS) to Plesk Panel

Lloyd_mcse

Silver Pleskian
Plesk Guru
I have tried this on Plesk 11.5 and Plesk 12.0.10 Preview running on Ubuntu 12.04.4 LTS...

Locate the file
/etc/sw-cp-server/conf.d/plesk.conf

And add the normal Nginx HSTS directive under the certificate entries like so..
ssl_certificate /opt/psa/admin/conf/httpsd.pem;
ssl_certificate_key /opt/psa/admin/conf/httpsd.pem;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";

Save the file and restart the Plesk server..
service sw-cp-server restart
Now you have Strict Transport Security on your panel.

Perhaps someone from Parallels can confirm when and if this file gets overwritten?

Anyway I hope it helps someone else.
Kind regards

Lloyd
 
This config file will be overwritten only during Plesk upgrade. Therefore you need to modify this file after upgrade again.
 
Lovely, thanks Igor :)
I'll keep an eye on it.

For anyone else interested in having HSTS built in to Plesk there is a feature request at uservoice
 
Back
Top