# Content Based Load Balancing in Google Cloud This provides a template for running an HTTP load balancer that distributes traffic to different instances based on the path in the request URL. It is based on the tutorial at [https://cloud.google.com/compute/docs/load-balancing/http/content-based-example](https://cloud.google.com/compute/docs/load-balancing/http/content-based-example). To start, [download your credentials from Google Cloud Console](https://www.terraform.io/docs/providers/google/#credentials); suggested path for downloaded file is `~/.gcloud/Terraform.json`. Optionally update `variables.tf` to specify a default value for the `project_name` variable, and check other variables. After you run `terraform apply` on this configuration, it will automatically output the public IP address of the load balancer. After your instance registers, the LB should respond with the following at its root: ```html