Apache:設定Strict Transport Security 的header

步驟如下:

1.開啟 apache headers
sudo a2enmod headers

2.
設定 /etc/apache2/conf-available/security.conf ,加上 header 設定

3.重開apache
sudo service apache2 reload

參考文章:
[apache] apache 設定 HSTS ( HTTP Strict Transport Security )

Strict-Transport-Security