ajay.kumar.awscloud
ajay.kumar.awscloud

Reputation: 201

GCP load balancer to point to index.html in /bucket/folder1/folder2/index.html

I have a bucket bucketName and couple of folders inside it (folder1/folder2/..

Folder2 is index.html file, js/* and css/* folders. I would like to create a domain mapping using GCP load balancer (domain.com) to point to LB IP.

I have already tried with Advanced settings in host and path rule but not working. Can someone guide me.

Upvotes: 0

Views: 2010

Answers (1)

ajay.kumar.awscloud
ajay.kumar.awscloud

Reputation: 201

I solved this by below structure:

  1. created a LB.
  2. In the path mapping section, go to advanced settings and click on host and path rewite.
  3. In the path rewrite, define the folder path.

You may have to wait for some time to get it reflected.

Upvotes: 1

Related Questions