I have HTTP/HTTPS Load Balancing set up on Google Compute Engine with 2 Global Forwarding Rules (HTTP and HTTPS). Each rule points to a back-end service with a protocol of HTTP.
I want all requests to http://*
to go to https://*
.
As the load balancer talks to the back-end services over HTTP I don't think I can get nginx on the back-end service to send back a 301
.
I've tried a dozen small tweaks on google compute and they all end up with google compute returning a 502
.
I'm sure somebody else has set this up before. Any tips or pointers in the right direction are much appreciated.