securePort

securePort

Description

When this property is specified, both an HTTPS and an HTTP server are started. The HTTPS server listens on the port specified here; the HTTP server listens on the port specified by port.

Either sslOptions, or both sslCert and sslKey, must also be configured. Otherwise the instance reports a configuration error and does not start.

Example

Serve HTTP on the port given by port and HTTPS on the standard HTTPS port 443:

securePort: 443

To redirect all HTTP traffic to HTTPS, see redirectHTTP. For full worked configurations, see Configuring HTTPS/SSL.

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