Add the HTTP Strict Transport (HSTS) response header to the HAProxy configuration.

About this task

Procedure

  1. Open /etc/haproxy/conf.d/20-vcac.cfg for editing.
  2. Add the following lines in a front end section:
    rspdel Strict-Transport-Security:\ max-age=31536000
        	rspadd Strict-Transport-Security:\ max-age=31536000
  3. Reload the HAProxy configuration using the following command.

    /etc/init.d/haproxy reload