Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Configure HTTP headers, in the external application loadbalancer

In GCP, I am running three NodeJS APIs in a single instance with three different port numbers (3000, 3001, and 3002), and I created an external application load balancer using the HTTPS front end. I also created a backend service for the three port numbers. The load balancer is attached to the instance group.

If I am requesting the URL "https://example.com/" reaching port 3000 This is working well for me for the single-backend service. but I need to pass this same URL, "https://example.com/" with different HTTP headers and values. For example, if I request the URL "https://example.com/" port 3000 needs to be reached, but if I request the same URL "https://example.com/" with the "mydealsapi" HTTP headers, port 3001 needs to be reached, and again, if I request the same URL "https://example.com/" with the "appapi" HTTP headers, port 3002 needs to be reached.

1 1 1,994