CLB supports layer-7 redirection, so that you can configure redirection on layer-7 HTTP/HTTPS listeners.
Note:
- Session persistence: if the client accesses
example.com/bbs/test/123.html
and session persistence has been enabled on the backend CVM, after redirection is enabled to forward traffic toexample.com/bbs/test/456.html
, the original session persistence mechanism will not take effect.- TCP/UDP redirection: redirection at IP + port level is not supported currently but will be available in subsequent versions.
HTTPS:443
listener, an HTTP listener (port 80) will be created automatically by the system for forwarding. Requests sent to HTTP:80
will be automatically redirected to HTTPS:443
.HTTP:80
to HTTPS:443
for forwarding.listener 1 / domain name 1 / URL 1
to listener 2 / domain name 2 / URL 2
.
Note:If the domain name has been configured with automatic redirection, you cannot configure manual redirection for it.
404/503
error message page, degrading the user experience and resulting in traffic waste.CLB supports one-click forced redirection from HTTP to HTTPS.
Assume that you need to configure the website https://www.example.com
, so that end users can visit it securely over HTTPS no matter whether they send HTTP requests (http://www.example.com
) or HTTPS requests (https://www.example.com
) in the browser.
The HTTPS:443
listener has been configured.
https://example.com
. For more information, see Configuring an HTTPS Listener.HTTP:80
listener has been automatically configured for the HTTPS:443
listener, and all HTTP traffic will be automatically redirected to HTTPS.CLB supports configuring 1-to-1 redirection.
For example, your business uses a forsale
page for a promotional campaign and needs to redirect the campaign page https://www.example.com/forsale
to the new homepage https://www.new.com/index
after the campaign ends.
https://www.example.com/forsale
has been configured.https://www.new.com/index
has been configured.https://example.com
. For more information, see Configuring an HTTPS Listener.HTTPS:443
and domain name https://www.example.com/forsale
, select the frontend protocol port HTTPS:443
and domain name https://www.new.com/index
after redirection, and click Next: Configure direcotory./forsale
for the original access path and /index
for the access path after redirection, and click Submit to complete the configuration.HTTPS:443
listener, https://www.example.com/forsale
has been redirected to https://www.new.com/index
.
Was this page helpful?