HSTS Missing From HTTPS Server

It works with a custom template:

Create custom template dir:

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf.d/nethserver.conf

Create file /etc/e-smith/templates-custom/etc/httpd/conf.d/nethserver.conf/20hsts with following content:

Header always set Strict-Transport-Security "max-age=31536000"

Apply configuration:

signal-event nethserver-httpd-update

There’s a feature thread:

1 Like