I have a webserver1 with Public IP:-X.X.X.65. This is registered under DNS as dumka.tk
I have an another webserver2 with Public IP:-X.X.X.61. This is registered under DNS as dumka.ml
Now i will create the Load balancer
I will add the backend later
Now create the hostnames
Edit the listener and add the respective hostnames
Now Define the Routing Policies
At last, add the Public IP of the Load balancer to the DNS Zones.
Perform the testing
There are many other advanced configurations which we can use with our OCI Load Balancer for which we can go through the Advanced OCI LB Concepts. You can also refer my earlier post OCI LB Redirection on how i had used Path Route set for Load balance Redirection. This post is all about how using one Network load balancer, we can serve multiple websites using hostname and Routing policies. Hope this post helps someone. Keep learning cloud.
No comments:
Post a Comment