Modifying HSTS header

Hi,

How can I modify the HSTS response header?

I have Apache + Nginx setup and I see the ‘strict-transport-security’ header on my website but I cannot find how to modify it.

Thanks

Your are not able to modify it currently with in Hestia

What does work is create a file:

$HOMEDIR/$user/conf/web/$domain/nginx.hsts_custom.conf

With your wanted hsts header

Also keep in mind to disable the default hsts hesder with untick the hsts checkbox while editing the web domain.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.