0
votes

I'm hosting a static website on a Google Cloud Storage bucket. The bucket is named as my domain: www.example.com.

I also have a single Cloud Load Balancer forwarding rule on GCP with my bucket configured as its backend. I'd like to configure my load balancer so that each request to HTTP protocol is redirected to HTTPS.

What is the simplest method to achieve this behavior?

Thanks

1
Here is the document will help you to setting up redirection from HTTP to HTTPS. Are you looking for this?Mahboob
The comment is the answer!guillaume blaquiere
Actually this is not the case. As this suggested URL talks about backend service, my website is hosted on GCE bucket, therefore this document above is not relevant for my case. Thanks!Forepick

1 Answers

1
votes

Hosting website on a bucket can be done by following this link. On the same page it's mentioned that if you want to redirect from HTTP to HTTPS then you need to set up additional HTTP-LB with a redirected setting in the URL map. Here is the step by step process to setting up redirection from HTTP to HTTPS.