Objective:
I want to allow https://example.com, http://example.com and www.example.com to point to my static website hosted on Google Cloud Storage bucket.
My Setup:
I am hosting a static website on Google Cloud Storage bucket.
- The bucket called www.example.com
- I have load balancer with https frontend and the bucket as backend.
- In the Cloud DNS, I have CNAME record that point to the bucket.
- I have A record that points my domain "example.com" to the https IP address of the load balancer front end.
With the above setup, https://example.com and www.example.com work fine.
I want to allow http too. So, I added another frontend to the load balancer "http". Then, I added the IP address of that frontend to the existing A record. So, now my A record has both IP addresses for http and https.
After doing that, http://example.com started working. However, https://example.com stopped working. Am I missing something?