redirectHTTP

redirectHTTP

Description

If this value is set to true and securePort is also specified, requests to the HTTP server are redirected to the HTTPS server with a 301 response, and a Strict-Transport-Security header is sent so the browser uses HTTPS on subsequent visits.

securePort must be configured. Setting redirectHTTP to true without it causes a configuration error and the instance does not start.

Example

redirectHTTP: true

For a full worked configuration, see Configuring HTTPS/SSL.

For information on how to modify this setting, see Configuration File.