HTTP Strict Transport Security OLS

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
88
How to enable HTTP Strict Transport Security in OpenLiteSpeed.

I'm trying to enable by domain, tried to add via .htaccess but not work.
 

Add extraHeaders via the DirectAdmin Admin Panel -> Admin Settings -> Customize Httpd Configurations -> openlitespeed.conf
OLS wiki suggests adding these to the Context section:

context / {
extraHeaders Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
}
 
Back
Top