Domain name redirection means when you access a URL in a browser, the web server is set to automatically redirect to another URL.
http://tencent.com
and https://tencent.com
need to point to the same web service.https://tengxun.com
to https://tencent.com
, and the two domain names point to the same web service.Note
- After you use redirection, there will be an additional annotation, which indicates that the forwarding rule of the Ingress is managed by TKE and cannot be deleted or modified subsequently; otherwise, it will conflict with the redirection rule set in CLB.
ingress.cloud.tencent.com/rewrite-support: "true"
- If a letter is used to represent the domain name address, and A has been redirected to B, then:
- A cannot be redirected to C (unless you delete the old redirection relationship first and then create a new one).
- B cannot be redirected to any other address.
- A cannot be redirected to A.
There are two redirection methods:
HTTPS:443
listener first and then create a forwarding rule under it. When you call this API, the system will automatically create an HTTP:80
listener (if it doesn't exist) and create a forwarding rule under it, which correspond to the various configurations under the HTTPS:443
listener, such as the domain name.An Ingress supports two redirection configuration ways: console and YAML, as detailed below:
Was this page helpful?