Hello,
I’m trying to configure http redirect from one host to another using HTTPRedirect feature of VirtualService. It works, but I can only redirect to http urls, not https. Here is an example:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: website1-redirect
spec:
gateways:
- website1-gateway
hosts:
- website1.com
http:
- match:
- authority:
exact: website1.com
redirect:
authority: website2.com
I’d like to redirect from https://website1.com to https://website2.com. We terminate ssl on AWS load balancer. Is there a way to achieve that? Envoy has something like that defined, but it looks like it’s not exposed in istio: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/route/route.proto#envoy-api-field-route-redirectaction-https-redirect