My goal is to have a redirect http-to-https for a loadbalancer for 3 instance groups on Google Cloud Platform.
I have one load-balancer http-to-https which redirects to another load-balancer for my 3 applications (3 backend services, 3 instance groups). I followed documentation, it works great for only 1 of those banckend-services, the ones which is default.The other 2 backends are not redirected to https when I curl the backend
not shown here, but IPs in both loadbalancers match
When I curl https://domain1.fr -> OK
When I curl http://domain1.fr -> 301 redirect to https -> OK
When I curl https://domain2.fr -> OK
When I curl http://domain2.fr -> OK (but no redirect to https)
When I curl https://domain3.fr -> OK
When I curl http://domain3.fr -> OK (but no redirect to https)
Not shown here, but if I change default backend to backend2 in my LoadBalancer, it redirects to https for domain2.fr.