Enable Auto-Redirect to HTTPS

You can enable the automatic redirect to HTTPS.

About this task

Support was added to allow for an automatic redirect to HTTPS to be configured for the web applications that are deployed on a secure port (HTTP Server Adapter or base SSL port) and skipped on the base port. This is an optional, but strongly recommended, configuration.

Note: All custom properties for your environment should be set in the customer_overrides.properties file so that they are not overwritten during an upgrade or patch installation.

To enable the automatic redirect to HTTPS:

Procedure

  1. Navigate to /<install_dir>/install/properties.
  2. Configure the following parameter values in the customer_overrides.properties file.
    noapp.HTTPS_REDIRECT_WARS=admin,dashboard,gbm,communitymanagement,myaft,portlets
    noapp.HTTPS_LIST_PORT=<http_server_adapter_port or base_ssl_port>
    These parameters are configured to automatically redirect a user to the HTTPS instance of the web application.
    Note: The customer_overrides.properties file is not part of the default system code. It must be created after the initial system installation and populated to match your environment.
  3. Save and close the file.

Example Implementation

Example implementation in customer_overrides.properties file:

## Identifies wars for auto-redirect to the https port. Use comma-separated
## list to specify multiple wars
noapp.HTTPS_REDIRECT_WARS=admin,dashboard,gbm,communitymanagement,myaft,portlets
## Identifies the https port for the redirected wars. If specified, this
## should match the WEBAPP_LIST_PORT in sandbox.cfg
noapp.HTTPS_LIST_PORT=<http_server_adapter_port or base_ssl_port>
Note: If using a secure HTTP Server adapter instance, the configuration mandates that all wars specified as HTTPS_REDIRECT_WARS must be deployed on the same HTTP Server adapter instance.