HTTP Redirection to HTTPS
Scenarios
HTTPS is an extension of HTTP. HTTPS encrypts data between a web server and a browser. Redirection allows requests to be redirected from HTTP to HTTPS.
After redirection is enabled, all HTTP requests to access your website are transmitted over HTTPS connections to improve service security.
Prerequisites
- An HTTPS listener has been added.
- An HTTP listener has been added.
Create a Redirect
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Click Service List. Under Network, click Elastic Load Balance.
- Locate the target load balancer and click its name.
- Click Listeners, locate the target HTTP listener, and click its name.
- Click Redirects and then Create on the right.
Table 1 Parameters for configuring redirection Parameter
Description
Example Value
Name
Specifies the redirect name.
redirect-g8h9
Redirected To
Specifies the HTTPS listener to which requests are redirected.
N/A
Description
Provides supplementary information about the redirect.
N/A
- Click OK.
- If requests to an HTTP listener are redirected, its configuration becomes invalid except for access control.
- After an HTTP listener is redirected, backend servers return HTTP 301 Move Permanently to the clients.
Modify a Redirect
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Click Service List. Under Network, click Elastic Load Balance.
- Locate the target load balancer and click its name.
- Click Listeners, locate the target HTTP listener, and click its name.
- Click Redirects, locate the target redirect, and click Modify in the Operation column.
- In the Modify Redirect dialog box, modify the redirect name or description, or select another listener, and click OK.
Delete a Redirect
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Click Service List. Under Network, click Elastic Load Balance.
- Locate the target load balancer and click its name.
- Click Listeners, locate the target listener, and click its name.
- Click Redirects, locate the target redirect, and click Delete in the Operation column.
- In the Delete Redirect dialog box, click Yes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot