HTTP Strict Transport Security for NGINX and Apache
This tutorial will show you how to set up HSTS in NGINX and Apache. It has been tested with NGINX 1.1.19 and Apache 2.2.22 on Ubuntu 12.04, Debian 6 & 7 and CentOS 6. However, these are just the referenced versions and it should work on other distributions as well.