Skip to main content
Configure HTTP → HTTPS redirect
Last update:

Configure HTTP → HTTPS redirect

  1. Make sure that created a load balancer с HTTPS rulewhich will accept requests to the HTTPS version of the site. Available balancers can be viewed in control panels under Cloud platformBalancers.

  2. В control panels go to Cloud platformBalancers.

  3. Open the tab Balancers → balancer page.

  4. Click Create a rule.

  5. Select protocol The default port 80 will be automatically selected. The standard port 80 will be automatically selected, on which the balancer will listen to traffic.

  6. Select target group By default, traffic that is not subject to the HTTP Policies in the rule. If there are no available target groups in the list, tap New target group и create a task force with the HTTP traffic destination protocol and port 80. If you want to discard traffic that does not fall under the HTTP policy, select Without a target group.

  7. Mark it HTTP request headersthat need to be transmitted to the servers.

  8. To create in the rule HTTP policy, press Add a new policy.

  9. Select a test condition: HOSTNAME — EQUAL TO.

  10. Enter the name of the domain, for example, example.com.

  11. Select an action Redirect to URL prefix.

  12. Enter the URL prefix — the part that will replace the protocol and domain name in the incoming request, for example, https://example.com.

  13. Optional: change the policy name or leave the default one generated.

  14. Click Add.

  15. Optional: open the unit Advanced rule settings and specify connection settings:

    • for incoming requests to the balancer — specify the connection timeout and maximum connections;
    • for requests from the balancer to servers — specify the connection timeout, inactivity timeout and TCP packet waiting timeout.
  16. Click Create.